|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.optimization.fitting.GaussianFunction
public class GaussianFunction
A Gaussian function. Specifically:
f(x) = a + b*exp(-((x - c)^2 / (2*d^2)))
Notation key:
GaussianDerivativeFunction
,
ParametricGaussianFunction
,
Serialized FormConstructor Summary | |
---|---|
GaussianFunction(double[] parameters)
Constructs an instance with the specified parameters. |
|
GaussianFunction(double a,
double b,
double c,
double d)
Constructs an instance with the specified parameters. |
Method Summary | |
---|---|
UnivariateRealFunction |
derivative()
Returns the derivative of the function |
double |
getA()
Gets a parameter value. |
double |
getB()
Gets b parameter value. |
double |
getC()
Gets c parameter value. |
double |
getD()
Gets d parameter value. |
double |
value(double x)
Compute the value for the function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GaussianFunction(double a, double b, double c, double d)
a
- a parameter valueb
- b parameter valuec
- c parameter valued
- d parameter value
IllegalArgumentException
- if d
is 0public GaussianFunction(double[] parameters)
parameters
- a, b, c, and d
parameter values
IllegalArgumentException
- if parameters
is null,
parameters
length is not 4, or if
parameters[3]
is 0Method Detail |
---|
public UnivariateRealFunction derivative()
derivative
in interface DifferentiableUnivariateRealFunction
public double value(double x)
value
in interface UnivariateRealFunction
x
- the point for which the function value should be computed
public double getA()
public double getB()
public double getC()
public double getD()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |