Class GaussianCurveFitter.ParameterGuesser
- java.lang.Object
-
- org.apache.commons.math4.legacy.fitting.SimpleCurveFitter.ParameterGuesser
-
- org.apache.commons.math4.legacy.fitting.GaussianCurveFitter.ParameterGuesser
-
- Enclosing class:
- GaussianCurveFitter
public static class GaussianCurveFitter.ParameterGuesser extends SimpleCurveFitter.ParameterGuesser
Guesses the parametersnorm
,mean
, andsigma
of aGaussian.Parametric
based on the specified observed points.
-
-
Constructor Summary
Constructors Constructor Description ParameterGuesser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
guess(Collection<WeightedObservedPoint> observations)
Computes an estimation of the parameters.-
Methods inherited from class org.apache.commons.math4.legacy.fitting.SimpleCurveFitter.ParameterGuesser
findMaxY, interpolateXAtY, sortObservations
-
-
-
-
Constructor Detail
-
ParameterGuesser
public ParameterGuesser()
-
-
Method Detail
-
guess
public double[] guess(Collection<WeightedObservedPoint> observations)
Computes an estimation of the parameters.- Specified by:
guess
in classSimpleCurveFitter.ParameterGuesser
- Parameters:
observations
- Observations.- Returns:
- the guessed parameters, in the following order:
- Normalization factor
- Mean
- Standard deviation
- Throws:
NullArgumentException
- ifobservations
isnull
.NumberIsTooSmallException
- if there are less than 3 observations.
-
-