public static class HarmonicCurveFitter.ParameterGuesser extends Object
The algorithm used to guess the coefficients is as follows:
We know
From the analytical expression, we can compute two primitives :
We can remove
The preceding expression shows that
From the primitive, we can deduce the same form for definite
integrals between
We can find the coefficients
For a bilinear expression
In fact, we can assume that both
Once we know
It appears that
Since integrals and means are involved in the preceding
estimations, these operations run in
Constructor and Description |
---|
HarmonicCurveFitter.ParameterGuesser(Collection<WeightedObservedPoint> observations)
Simple constructor.
|
public HarmonicCurveFitter.ParameterGuesser(Collection<WeightedObservedPoint> observations)
observations
- Sampled observations.NumberIsTooSmallException
- if the sample is too short.ZeroException
- if the abscissa range is zero.MathIllegalStateException
- when the guessing procedure cannot
produce sensible results.public double[] guess()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.