Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.math3.optimization.fitting
Class GaussianFitter.ParameterGuesser

    java.lang.Object
      org.apache.commons.math3.optimization.fitting.GaussianFitter.ParameterGuesser

Enclosing class:
  GaussianFitter

    public static class GaussianFitter.ParameterGuesser

extends Object

Guesses the parameters `norm`, `mean`, and `sigma` of a `Gaussian.Parametric` based on the specified observed points.

Constructor Summary
`GaussianFitter.ParameterGuesser(WeightedObservedPoint[] observations)` Constructs instance with the specified observed points.

Method Summary
`double[]` | `guess()` Gets an estimation of the parameters.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### GaussianFitter.ParameterGuesser

    public GaussianFitter.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` - if `observations` is `null`.
    `NumberIsTooSmallException` - if there are less than 3 observations.

Method Detail

### guess

    public double[] guess()

  Gets an estimation of the parameters.

  Returns:
    the guessed parameters, in the following order:
    - Normalization factor
    - Mean
    - Standard deviation

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.