gov.sns.tools.optimizer
Class RandomSearchAlgorithm

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

public class RandomSearchAlgorithm
extends SearchAlgorithm


Constructor Summary
RandomSearchAlgorithm()
          Creates a new instance of RandomSearchAlgorithm
 
Method Summary
protected  double getBestScore()
          returns the best score after step
 java.util.Random getRandomGenerator()
          returns random generator instance.
 double getShrinkageFactor()
          returns the shrinkage factor.
 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 setShrinkageFactor(double shrinkageFactor)
          sets the shrinkage factor.
 
Methods inherited from class gov.sns.tools.optimizer.SearchAlgorithm
accept, acceptProxyForFitting, 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

RandomSearchAlgorithm

public RandomSearchAlgorithm()
Creates a new instance of RandomSearchAlgorithm

Method Detail

reset

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

Specified by:
reset 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

getRandomGenerator

public java.util.Random getRandomGenerator()
returns random generator instance.


getShrinkageFactor

public double getShrinkageFactor()
returns the shrinkage factor.


setShrinkageFactor

public void setShrinkageFactor(double shrinkageFactor)
sets the shrinkage factor.