Package edu.cmu.tetrad.sem
Class SemOptimizerScattershot
java.lang.Object
edu.cmu.tetrad.sem.SemOptimizerScattershot
- All Implemented Interfaces:
SemOptimizer,TetradSerializable,Serializable
Optimizes a SEM by randomly selecting points in cubes of decreasing size about
a given point.
- Author:
- Joseph Ramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidOptimizes the fitting function of the given Sem using the Powell method from Numerical Recipes by adjusting the freeParameters of the Sem.static SemOptimizerScattershotGenerates a simple exemplar of this class to test serialization.voidsetNumRestarts(int numRestarts) toString()
-
Constructor Details
-
SemOptimizerScattershot
public SemOptimizerScattershot()Blank constructor.
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization. -
optimize
Optimizes the fitting function of the given Sem using the Powell method from Numerical Recipes by adjusting the freeParameters of the Sem.- Specified by:
optimizein interfaceSemOptimizer- Parameters:
semIm- The unoptimized Sem (will be optimized).
-
setNumRestarts
public void setNumRestarts(int numRestarts) - Specified by:
setNumRestartsin interfaceSemOptimizer
-
getNumRestarts
public int getNumRestarts()- Specified by:
getNumRestartsin interfaceSemOptimizer
-
toString
-