Deprecated
As of 3.1 (to be removed in 4.0).
| Modifier and Type | Class and Description |
|---|---|
| private class | CurveFitter.
Deprecated
Vectorial function computing function theoretical values.
|
| private class | CurveFitter.
Vectorial function computing function theoretical values. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | observations
Observed points. |
| private final DifferentiableMultivariateVectorOptimizer | oldOptimizer
Deprecated
as of 3.1 replaced by Optimizer to use for the fitting.
optimizer
|
| private final MultivariateDifferentiableVectorOptimizer | optimizer
Deprecated
as a consequence of Optimizer to use for the fitting.
MultivariateDifferentiableVectorOptimizer being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | CurveFitter(final DifferentiableMultivariateVectorOptimizer
optimizer to use for the fitting optimizer)
Deprecated
as of 3.1 replaced by
CurveFitter(MultivariateDifferentiableVectorOptimizer)
Simple constructor. |
| public | CurveFitter(final MultivariateDifferentiableVectorOptimizer
optimizer to use for the fitting optimizer)
Deprecated
as a consequence of
MultivariateDifferentiableVectorOptimizer 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)
Deprecated
as a consequence of
WeightedObservedPoint being deprecated.
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[] | Returns: observed points
Deprecated
as a consequence of
WeightedObservedPoint being deprecated.
Get the observed points. |
| observations | back to summary |
|---|---|
| private final List<WeightedObservedPoint> observations Observed points. | |
| oldOptimizer | back to summary |
|---|---|
| private final DifferentiableMultivariateVectorOptimizer oldOptimizer
Deprecated as of 3.1 replaced by Optimizer to use for the fitting. | |
| optimizer | back to summary |
|---|---|
| private final MultivariateDifferentiableVectorOptimizer optimizer
Deprecated as a consequence of Optimizer to use for the fitting. | |
| CurveFitter | back to summary |
|---|---|
| public CurveFitter(final DifferentiableMultivariateVectorOptimizer optimizer)
Deprecated as of 3.1 replaced by Simple constructor.
| |
| CurveFitter | back to summary |
|---|---|
| public CurveFitter(final MultivariateDifferentiableVectorOptimizer 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)
Deprecated as a consequence of 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()
Deprecated as a consequence of Get the observed points.
| |
Deprecated
| Modifier and Type | Field and Description |
|---|---|
| private final ParametricUnivariateFunction | f
Function to fit. |
| Access | Constructor and Description |
|---|---|
| pack-priv | OldTheoreticalValuesFunction(final ParametricUnivariateFunction
function to fit. f)Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public MultivariateMatrixFunction | jacobian()
Implements org. Returns the jacobian function. |
| public double[] | value(double[]
point at which the function must be evaluated point)Implements org. Compute the value for the function at the given point. |
| f | back to summary |
|---|---|
| private final ParametricUnivariateFunction f Function to fit. | |
| OldTheoreticalValuesFunction | back to summary |
|---|---|
| pack-priv OldTheoreticalValuesFunction(final ParametricUnivariateFunction f) Simple constructor.
| |
| jacobian | back to summary |
|---|---|
| public MultivariateMatrixFunction jacobian() Implements org. Doc from org. Returns the jacobian function.
| |
| value | back to summary |
|---|---|
| public double[] value(double[] point) Implements org. Doc from org. Compute the value for the function at the given point.
| |
| 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 double[] | value(double[]
point at which the function must be evaluated point)Implements org. Compute the value for the function at the given point. |
| public DerivativeStructure[] | value(DerivativeStructure[]
point at which the function must be evaluated point)Implements org. Compute the value for the function at the given point. |
| f | back to summary |
|---|---|
| private final ParametricUnivariateFunction f Function to fit. | |
| TheoreticalValuesFunction | back to summary |
|---|---|
| pack-priv TheoreticalValuesFunction(final ParametricUnivariateFunction f) Simple constructor.
| |
| value | back to summary |
|---|---|
| public double[] value(double[] point) Implements org. Doc from org. Compute the value for the function at the given point.
| |
| value | back to summary |
|---|---|
| public DerivativeStructure[] value(DerivativeStructure[] point) Implements org. Doc from org. Compute the value for the function at the given point.
| |