public class GaussianFitter extends CurveFitter<Gaussian.Parametric>
Gaussian
function.
Usage example:
GaussianFitter fitter = new GaussianFitter( new LevenbergMarquardtOptimizer()); fitter.addObservedPoint(4.0254623, 531026.0); fitter.addObservedPoint(4.03128248, 984167.0); fitter.addObservedPoint(4.03839603, 1887233.0); fitter.addObservedPoint(4.04421621, 2687152.0); fitter.addObservedPoint(4.05132976, 3461228.0); fitter.addObservedPoint(4.05326982, 3580526.0); fitter.addObservedPoint(4.05779662, 3439750.0); fitter.addObservedPoint(4.0636168, 2877648.0); fitter.addObservedPoint(4.06943698, 2175960.0); fitter.addObservedPoint(4.07525716, 1447024.0); fitter.addObservedPoint(4.08237071, 717104.0); fitter.addObservedPoint(4.08366408, 620014.0); double[] parameters = fitter.fit();
Modifier and Type | Class and Description |
---|---|
static class |
GaussianFitter.ParameterGuesser
Guesses the parameters
norm , mean , and sigma of a
Gaussian.Parametric based on the specified observed points. |
Constructor and Description |
---|
GaussianFitter(MultivariateVectorOptimizer optimizer)
Constructs an instance using the specified optimizer.
|
Modifier and Type | Method and Description |
---|---|
double[] |
fit()
Fits a Gaussian function to the observed points.
|
double[] |
fit(double[] initialGuess)
Fits a Gaussian function to the observed points.
|
addObservedPoint, addObservedPoint, addObservedPoint, clearObservations, fit, fit, getObservations
public GaussianFitter(MultivariateVectorOptimizer optimizer)
optimizer
- Optimizer to use for the fitting.public double[] fit(double[] initialGuess)
initialGuess
- First guess values in the following order:
public double[] fit()
Copyright © 2018 CNES. All Rights Reserved.