|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.tools.optimizer.SearchAlgorithm
|
+--gov.sns.tools.optimizer.RandomSearchAlgorithm
| 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 |
public RandomSearchAlgorithm()
| Method Detail |
protected void reset()
reset in class SearchAlgorithmprotected boolean makeStep()
makeStep in class SearchAlgorithmprotected double getBestScore()
getBestScore in class SearchAlgorithmpublic int getType()
getType in class SearchAlgorithmpublic java.util.Random getRandomGenerator()
public double getShrinkageFactor()
public void setShrinkageFactor(double shrinkageFactor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||