org.apache.commons.math.optimization.fitting
public class GaussianDerivativeFunction extends Object implements UnivariateRealFunction, Serializable
GaussianFunction
. Specifically:
f'(x) = (-b / (d^2)) * (x - c) * exp(-((x - c)^2) / (2*(d^2)))
Notation key:
Modifier and Type | Field and Description |
---|---|
private double |
b
Parameter b of this function.
|
private double |
c
Parameter c of this function.
|
private double |
d2
Square of the parameter d of this function.
|
private static long |
serialVersionUID
Serializable version identifier.
|
Constructor and Description |
---|
GaussianDerivativeFunction(double[] parameters)
Constructs an instance with the specified parameters.
|
GaussianDerivativeFunction(double b,
double c,
double d)
Constructs an instance with the specified parameters.
|
private static final long serialVersionUID
private final double b
private final double c
private final double d2
public GaussianDerivativeFunction(double b, double c, double d)
b
- b parameter valuec
- c parameter valued
- d parameter valueIllegalArgumentException
- if d
is 0public GaussianDerivativeFunction(double[] parameters)
parameters
- b, c, and d parameter valuesIllegalArgumentException
- if parameters
is null,
parameters
length is not 3, or if
parameters[2]
is 0public double value(double x)
value
in interface UnivariateRealFunction
x
- the point for which the function value should be computedCopyright (c) 2003-2013 Apache Software Foundation