gov.sns.tools.optimizer
Class CoordsStepSearchAlgorithm

java.lang.Object
  |
  +--gov.sns.tools.optimizer.SearchAlgorithm
        |
        +--gov.sns.tools.optimizer.CoordsStepSearchAlgorithm

public class CoordsStepSearchAlgorithm
extends SearchAlgorithm


Constructor Summary
CoordsStepSearchAlgorithm()
          Creates a new instance of CoordsStepSearchAlgorithm
 
Method Summary
protected  boolean acceptProxyForFitting(ParameterProxy pr)
          returns true if the step of finding is more than 0.
protected  double getBestScore()
          returns the best score after step
 int getType()
          returns the type of the algorithm - SearchAlgorithmConstants..
protected  boolean makeStep()
          make one step in the search.
protected  void reset()
          reset for searching from scratch; forget history
 void shrinkStep(double factor)
          decrease the step for all parameters by multiplying by factor.
 
Methods inherited from class gov.sns.tools.optimizer.SearchAlgorithm
accept, getBestSolutionMap, getNumVariables, getScorer, getVariables, getWantToStop, setScorer, setVariables, setWantToStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordsStepSearchAlgorithm

public CoordsStepSearchAlgorithm()
Creates a new instance of CoordsStepSearchAlgorithm

Method Detail

shrinkStep

public void shrinkStep(double factor)
decrease the step for all parameters by multiplying by factor. It is supposed that factor less that 1. This method is specific for the walk on coordinates algorithm.


reset

protected void reset()
reset for searching from scratch; forget history

Specified by:
reset in class SearchAlgorithm

acceptProxyForFitting

protected boolean acceptProxyForFitting(ParameterProxy pr)
returns true if the step of finding is more than 0. It overrides superclass method.

Overrides:
acceptProxyForFitting in class SearchAlgorithm

makeStep

protected boolean makeStep()
make one step in the search. It returns ShouldStop boolean.

Specified by:
makeStep in class SearchAlgorithm

getBestScore

protected double getBestScore()
returns the best score after step

Specified by:
getBestScore in class SearchAlgorithm

getType

public int getType()
returns the type of the algorithm - SearchAlgorithmConstants..

Specified by:
getType in class SearchAlgorithm