|
|||||||||
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 FormField Summary | |
---|---|
private double |
a
Parameter a of this function. |
private double |
b
Parameter b of this function. |
private double |
c
Parameter c of this function. |
private double |
d
Parameter d of this function. |
private static long |
serialVersionUID
Serializable version identifier. |
Constructor 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 |
Field Detail |
---|
private static final long serialVersionUID
private final double a
private final double b
private final double c
private final double d
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
java.lang.IllegalArgumentException
- if d
is 0public GaussianFunction(double[] parameters)
parameters
- a, b, c, and d
parameter values
java.lang.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 |