T - Function to use for the fit.@Deprecated
public class CurveFitter<T extends ParametricUnivariateFunction>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private class |
CurveFitter.OldTheoreticalValuesFunction
Deprecated.
|
private class |
CurveFitter.TheoreticalValuesFunction
Deprecated.
Vectorial function computing function theoretical values.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<WeightedObservedPoint> |
observations
Deprecated.
Observed points.
|
private DifferentiableMultivariateVectorOptimizer |
oldOptimizer
Deprecated.
as of 3.1 replaced by
optimizer |
private MultivariateDifferentiableVectorOptimizer |
optimizer
Deprecated.
Optimizer to use for the fitting.
|
| Constructor and Description |
|---|
CurveFitter(DifferentiableMultivariateVectorOptimizer optimizer)
Deprecated.
as of 3.1 replaced by
CurveFitter(MultivariateDifferentiableVectorOptimizer) |
CurveFitter(MultivariateDifferentiableVectorOptimizer optimizer)
Deprecated.
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObservedPoint(double x,
double y)
Deprecated.
Add an observed (x,y) point to the sample with unit weight.
|
void |
addObservedPoint(double weight,
double x,
double y)
Deprecated.
Add an observed weighted (x,y) point to the sample.
|
void |
addObservedPoint(WeightedObservedPoint observed)
Deprecated.
Add an observed weighted (x,y) point to the sample.
|
void |
clearObservations()
Deprecated.
Remove all observations.
|
double[] |
fit(int maxEval,
T f,
double[] initialGuess)
Deprecated.
Fit a curve.
|
double[] |
fit(T f,
double[] initialGuess)
Deprecated.
Fit a curve.
|
WeightedObservedPoint[] |
getObservations()
Deprecated.
Get the observed points.
|
@Deprecated private final DifferentiableMultivariateVectorOptimizer oldOptimizer
optimizerprivate final MultivariateDifferentiableVectorOptimizer optimizer
private final java.util.List<WeightedObservedPoint> observations
@Deprecated public CurveFitter(DifferentiableMultivariateVectorOptimizer optimizer)
CurveFitter(MultivariateDifferentiableVectorOptimizer)optimizer - optimizer to use for the fittingpublic CurveFitter(MultivariateDifferentiableVectorOptimizer optimizer)
optimizer - optimizer to use for the fittingpublic void addObservedPoint(double x,
double y)
Calling this method is equivalent to call
addObservedPoint(1.0, x, y).
x - abscissa of the pointy - observed value of the point at x, after fitting we should
have f(x) as close as possible to this valueaddObservedPoint(double, double, double),
addObservedPoint(WeightedObservedPoint),
getObservations()public void addObservedPoint(double weight,
double x,
double y)
weight - weight of the observed point in the fitx - abscissa of the pointy - observed value of the point at x, after fitting we should
have f(x) as close as possible to this valueaddObservedPoint(double, double),
addObservedPoint(WeightedObservedPoint),
getObservations()public void addObservedPoint(WeightedObservedPoint observed)
observed - observed point to addaddObservedPoint(double, double),
addObservedPoint(double, double, double),
getObservations()public WeightedObservedPoint[] getObservations()
addObservedPoint(double, double),
addObservedPoint(double, double, double),
addObservedPoint(WeightedObservedPoint)public void clearObservations()
public double[] fit(T f, double[] initialGuess)
addObservedPoint method.f - parametric function to fit.initialGuess - first guess of the function parameters.DimensionMismatchException - if the start point dimension is wrong.public double[] fit(int maxEval,
T f,
double[] initialGuess)
addObservedPoint method.f - parametric function to fit.initialGuess - first guess of the function parameters.maxEval - Maximum number of function evaluations.TooManyEvaluationsException - if the number of allowed evaluations is exceeded.DimensionMismatchException - if the start point dimension is wrong.Copyright (c) 2003-2015 Apache Software Foundation