public class Gaussian extends Object implements UnivariateDifferentiableFunction
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 |
---|---|
double |
value(double x)
Compute the value of the function.
|
<T extends Derivative<T>> |
value(T t)
Compute the value for the function.
|
public Gaussian(double norm, double mean, double sigma) throws MathIllegalArgumentException
norm
- Normalization factor.mean
- Mean.sigma
- Standard deviation.MathIllegalArgumentException
- if sigma <= 0
.public Gaussian(double mean, double sigma) throws MathIllegalArgumentException
mean
- Mean.sigma
- Standard deviation.MathIllegalArgumentException
- 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 <T extends Derivative<T>> T value(T t) throws MathIllegalArgumentException
value
in interface UnivariateDifferentiableFunction
T
- the type of the field elementst
- the point for which the function value should be computedMathIllegalArgumentException
- if x
does not
satisfy the function's constraints (argument out of bound, or unsupported
derivative order for example)Copyright © 2016-2021 CS GROUP. All rights reserved.