Package org.apache.commons.math3.fitting
Class GaussianFitter.ParameterGuesser
- java.lang.Object
-
- org.apache.commons.math3.fitting.GaussianFitter.ParameterGuesser
-
- Enclosing class:
- GaussianFitter
public static class GaussianFitter.ParameterGuesser extends java.lang.Object
Guesses the parametersnorm
,mean
, andsigma
of aGaussian.Parametric
based on the specified observed points.
-
-
Constructor Summary
Constructors Constructor Description ParameterGuesser(WeightedObservedPoint[] observations)
Constructs instance with the specified observed points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
guess()
Gets an estimation of the parameters.
-
-
-
Constructor Detail
-
ParameterGuesser
public ParameterGuesser(WeightedObservedPoint[] observations)
Constructs instance with the specified observed points.- Parameters:
observations
- Observed points from which to guess the parameters of the Gaussian.- Throws:
NullArgumentException
- ifobservations
isnull
.NumberIsTooSmallException
- if there are less than 3 observations.
-
-