public class SolverDataFit
extends java.lang.Object
Constructor and Description |
---|
SolverDataFit() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxIter() |
double[] |
getModelDataRSE() |
double |
getModelDataRSE(int i) |
double[] |
getModelDataY() |
double |
getModelDataY(int i)
Returns the value of a specific point of a data set evaluated by the model
|
double |
getOptParameter(int i)
Returns the optimized parameter
|
double |
getRMSE() |
void |
init(double[] dataX,
double[] dataY,
double[] params0,
boolean[] isActiveParameter,
DataFitModel m) |
void |
init(double[] dataX,
double[] dataY,
double[] params0,
DataFitModel m)
Solver initialization
|
void |
optimize()
Minimizes the cost function specified by the user the get
best fit model parameters
|
void |
printOptReport() |
void |
setMaxIter(int maxIter) |
public void init(double[] dataX, double[] dataY, double[] params0, DataFitModel m)
dataX
- Experimental abscissadataY
- Experimental ordinateparams0
- First guess for model parameters and fixed parametersm
- User supplied equation to be fittedpublic void init(double[] dataX, double[] dataY, double[] params0, boolean[] isActiveParameter, DataFitModel m)
public void optimize()
public void printOptReport()
public double getOptParameter(int i)
i
- the index of the required parameterpublic double getModelDataY(int i)
i
- the index of the point in the data setpublic double[] getModelDataY()
public double getModelDataRSE(int i)
public double[] getModelDataRSE()
public double getRMSE()
public void setMaxIter(int maxIter)
public int getMaxIter()