Deprecated
As of 3.3. Please use AbstractCurveFitter and
WeightedObservedPoints instead.
| Modifier and Type | Class and Description |
|---|---|
| private class | CurveFitter.
Vectorial function computing function theoretical values. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | observations
Observed points. |
| private final MultivariateVectorOptimizer | optimizer
Deprecated
as a consequence of Optimizer to use for the fitting.
MultivariateVectorOptimizer being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | CurveFitter(final MultivariateVectorOptimizer
Optimizer to use for the fitting. optimizer)
Deprecated
as a consequence of
MultivariateVectorOptimizer being deprecated.
Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addObservedPoint(double
abscissa of the point x, double observed value of the point at x, after fitting we should
have f(x) as close as possible to this value y)Add an observed (x,y) point to the sample with unit weight. |
| public void | addObservedPoint(double
weight of the observed point in the fit weight, double abscissa of the point x, double observed value of the point at x, after fitting we should
have f(x) as close as possible to this value y)Add an observed weighted (x,y) point to the sample. |
| public void | addObservedPoint(WeightedObservedPoint
observed point to add observed)Add an observed weighted (x,y) point to the sample. |
| public void | |
| public double[] | Returns: the fitted parameters.parametric function to fit. f, final double[] first guess of the function parameters. initialGuess)Fit a curve. |
| public double[] | Returns: the fitted parameters.Maximum number of function evaluations. maxEval, T parametric function to fit. f, final double[] first guess of the function parameters. initialGuess)Fit a curve. |
| public WeightedObservedPoint[] |
| observations | back to summary |
|---|---|
| private final List<WeightedObservedPoint> observations Observed points. | |
| optimizer | back to summary |
|---|---|
| private final MultivariateVectorOptimizer optimizer
Deprecated as a consequence of Optimizer to use for the fitting. | |
| CurveFitter | back to summary |
|---|---|
| public CurveFitter(final MultivariateVectorOptimizer optimizer)
Deprecated as a consequence of Simple constructor.
| |
| addObservedPoint | back to summary |
|---|---|
| public void addObservedPoint(double x, double y) Add an observed (x,y) point to the sample with unit weight. Calling this method is equivalent to call
| |
| addObservedPoint | back to summary |
|---|---|
| public void addObservedPoint(double weight, double x, double y) Add an observed weighted (x,y) point to the sample.
| |
| addObservedPoint | back to summary |
|---|---|
| public void addObservedPoint(WeightedObservedPoint observed) Add an observed weighted (x,y) point to the sample.
| |
| clearObservations | back to summary |
|---|---|
| public void clearObservations() Remove all observations. | |
| fit | back to summary |
|---|---|
| public double[] fit(T f, final double[] initialGuess) Fit a curve.
This method compute the coefficients of the curve that best
fit the sample of observed points previously given through calls
to the
| |
| fit | back to summary |
|---|---|
| public double[] fit(int maxEval, T f, final double[] initialGuess) Fit a curve.
This method compute the coefficients of the curve that best
fit the sample of observed points previously given through calls
to the
| |
| getObservations | back to summary |
|---|---|
| public WeightedObservedPoint[] getObservations() Get the observed points.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ParametricUnivariateFunction | f
Function to fit. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ModelFunction | Returns: the model function values.
Deprecated
as a consequence of
ModelFunction being deprecated.
|
| public ModelFunctionJacobian | Returns: the model function Jacobian.
Deprecated
as a consequence of
ModelFunctionJacobian being deprecated.
|
| f | back to summary |
|---|---|
| private final ParametricUnivariateFunction f Function to fit. | |
| TheoreticalValuesFunction | back to summary |
|---|---|
pack-priv TheoreticalValuesFunction(final ParametricUnivariateFunction f)
| |
| getModelFunction | back to summary |
|---|---|
| public ModelFunction getModelFunction()
Deprecated as a consequence of
| |
| getModelFunctionJacobian | back to summary |
|---|---|
| public ModelFunctionJacobian getModelFunctionJacobian()
Deprecated as a consequence of
| |