DateTime-Util-Calc

 view release on metacpan or  search on metacpan

lib/DateTime/Util/Calc.pm  view on Meta::CPAN

389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
$phi is passed the next median value. If it returns true upon execution,
then the search terminates.
 
If the above two fails, then $hi and $lo are re-computed for the next
iteration.
 
=head2 search_next(%opts)
 
Performs a "linear" search until some condition is met. This is a generalized
version of the formula defined in [1] p.22. The basic idea is :
 
  x = base
  while (! check(x) ) {
     x = next(x);
  }
  return x
 
%opts can contain the following parameters:
 
=over 4



( run in 0.227 second using v1.01-cache-2.11-cpan-0d8aa00de5b )