function.
| Modifier and Type | Field and Description |
|---|---|
| private final ParametricUnivariateFunction | function
Function to fit. |
| private final double[] | initialGuess
Initial guess for the parameters. |
| private final int | maxIter
Maximum number of iterations of the optimization algorithm. |
| Access | Constructor and Description |
|---|---|
| private | SimpleCurveFitter(ParametricUnivariateFunction
Function to fit. function, double[] Initial guess. Cannot be initialGuess, int null. Its length must
be consistent with the number of parameters of the function to fit.Maximum number of iterations of the optimization algorithm. maxIter)Contructor used by the factory methods. |
| Modifier and Type | Method and Description |
|---|---|
| public static SimpleCurveFitter | Returns: a curve fitter.Function to fit. f, double[] Initial guess for the parameters. Cannot be start)null.
Its length must be consistent with the number of parameters of the
function to fit.Creates a curve fitter. |
| protected LeastSquaresProblem | getProblem(Collection<WeightedObservedPoint>
Sample points. observations)Implements abstract org. Creates a least squares problem corresponding to the appropriate curve. |
| public SimpleCurveFitter | Returns: a new instance.maximum number of iterations newMaxIter)Configure the maximum number of iterations. |
| public SimpleCurveFitter | Returns: a new instance.new start point (initial guess) newStart)Configure the start point (initial guess). |
| function | back to summary |
|---|---|
| private final ParametricUnivariateFunction function Function to fit. | |
| initialGuess | back to summary |
|---|---|
| private final double[] initialGuess Initial guess for the parameters. | |
| maxIter | back to summary |
|---|---|
| private final int maxIter Maximum number of iterations of the optimization algorithm. | |
| SimpleCurveFitter | back to summary |
|---|---|
| private SimpleCurveFitter(ParametricUnivariateFunction function, double[] initialGuess, int maxIter) Contructor used by the factory methods.
| |
| create | back to summary |
|---|---|
| public static SimpleCurveFitter create(ParametricUnivariateFunction f, double[] start) Creates a curve fitter.
The maximum number of iterations of the optimization algorithm is set
to
| |
| getProblem | back to summary |
|---|---|
| protected LeastSquaresProblem getProblem(Collection<WeightedObservedPoint> observations) Implements abstract org. Doc from org. Creates a least squares problem corresponding to the appropriate curve.
| |
| withMaxIterations | back to summary |
|---|---|
| public SimpleCurveFitter withMaxIterations(int newMaxIter) Configure the maximum number of iterations.
| |
| withStartPoint | back to summary |
|---|---|
| public SimpleCurveFitter withStartPoint(double[] newStart) Configure the start point (initial guess).
| |