public abstract class MultiRunMinimizer extends java.lang.Object implements Minimizer
Constructor and Description |
---|
MultiRunMinimizer()
Basic constructor required for inheritance.
|
MultiRunMinimizer(DW_Scheme scheme,
ParametricModel pm,
Codec cod,
Perturbation p,
int repeats,
int seed)
Constructor needs all the following:
|
Modifier and Type | Method and Description |
---|---|
static double[] |
getBestSolution(double[][] solutions)
Returns the solution with minimum MSE from an array of multirun
solutions
|
int |
getNumSolutions()
Returns the number of candidate solutions each run returns.
|
double[][] |
getSolutions()
Returns the list of candidate solutions.
|
void |
minimise()
Run the minimizer repeatedly from perturbed starting points and
concatenate the result.
|
void |
setInitParams(double[] aInit)
Sets the initial values of the optimized parameters.
|
void |
setMeasurements(double[] newMeas)
Initializes the fitting procedure with a new set of
measurements (dependent variables).
|
void |
setPerturbation(Perturbation p)
Sets the perturbation object for getting starting points.
|
public MultiRunMinimizer()
public MultiRunMinimizer(DW_Scheme scheme, ParametricModel pm, Codec cod, Perturbation p, int repeats, int seed) throws MinimizerException
scheme
- The acquisition protocolpm
- The model to fitcod
- The Codec specifying the transformation from model
to optimized parameters.pertStds
- array of standard deviations of the
perturbations on each starting parameter.repeats
- The number of times to repeat the optimization.seed
- Seed for random number generator.MinimizerException
public void setPerturbation(Perturbation p)
public void setInitParams(double[] aInit) throws MinimizerException
Minimizer
setInitParams
in interface Minimizer
aInit
- Array containing the new parameter values starting from index
0.MinimizerException
public void setMeasurements(double[] newMeas) throws MinimizerException
Minimizer
setMeasurements
in interface Minimizer
newMeas
- The new set of measurements.MinimizerException
public void minimise() throws MinimizerException
minimise
in interface Minimizer
MinimizerException
public double[][] getSolutions()
Minimizer
getSolutions
in interface Minimizer
public int getNumSolutions()
Minimizer
getNumSolutions
in interface Minimizer
public static double[] getBestSolution(double[][] solutions)