|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math3.analysis.function.Gaussian
public class Gaussian
Gaussian function.
| Nested Class Summary | |
|---|---|
static class |
Gaussian.Parametric
Parametric function where the input array contains the parameters of the Gaussian, ordered as follows: Norm Mean Standard deviation |
| Field Summary | |
|---|---|
private double |
i2s2
Inverse of twice the square of the standard deviation. |
private double |
is
Inverse of the standard deviation. |
private double |
mean
Mean. |
private double |
norm
Normalization factor. |
| Constructor Summary | |
|---|---|
Gaussian()
Normalized gaussian with zero mean and unit standard deviation. |
|
Gaussian(double mean,
double sigma)
Normalized gaussian with given mean and standard deviation. |
|
Gaussian(double norm,
double mean,
double sigma)
Gaussian with given normalization factor, mean and standard deviation. |
|
| Method Summary | |
|---|---|
UnivariateFunction |
derivative()
Deprecated. as of 3.1, replaced by value(DerivativeStructure) |
DerivativeStructure |
value(DerivativeStructure t)
Simple mathematical function. |
double |
value(double x)
Compute the value of the function. |
private static double |
value(double xMinusMean,
double norm,
double i2s2)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final double mean
private final double is
private final double i2s2
private final double norm
| Constructor Detail |
|---|
public Gaussian(double norm,
double mean,
double sigma)
throws NotStrictlyPositiveException
norm - Normalization factor.mean - Mean.sigma - Standard deviation.
NotStrictlyPositiveException - if sigma <= 0.
public Gaussian(double mean,
double sigma)
throws NotStrictlyPositiveException
mean - Mean.sigma - Standard deviation.
NotStrictlyPositiveException - if sigma <= 0.public Gaussian()
| Method Detail |
|---|
public double value(double x)
value in interface UnivariateFunctionx - Point at which the function value should be computed.
@Deprecated public UnivariateFunction derivative()
value(DerivativeStructure)
derivative in interface DifferentiableUnivariateFunction
private static double value(double xMinusMean,
double norm,
double i2s2)
xMinusMean - x - mean.norm - Normalization factor.i2s2 - Inverse of twice the square of the standard deviation.
x.
public DerivativeStructure value(DerivativeStructure t)
throws DimensionMismatchException
UnivariateDifferentiableFunction classes compute both the
value and the first derivative of the function.
value in interface UnivariateDifferentiableFunctiont - function input value
DimensionMismatchException - if t is inconsistent with the
function's free parameters or order
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||