public class Gaussian extends Object implements DifferentiableUnivariateFunction
Modifier and Type | Class and Description |
---|---|
static class |
Gaussian.Parametric
Parametric function where the input array contains the parameters of
the Gaussian, ordered as follows:
Norm
Mean
Standard deviation
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
UnivariateFunction |
derivative()
Returns the derivative of the function
|
double |
value(double x)
Compute the value of the function.
|
public Gaussian(double norm, double mean, double sigma)
norm
- Normalization factor.mean
- Mean.sigma
- Standard deviation.NotStrictlyPositiveException
- if sigma <= 0
.public Gaussian(double mean, double sigma)
mean
- Mean.sigma
- Standard deviation.NotStrictlyPositiveException
- if sigma <= 0
.public Gaussian()
public double value(double x)
value
in interface UnivariateFunction
x
- Point at which the function value should be computed.public UnivariateFunction derivative()
derivative
in interface DifferentiableUnivariateFunction
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.