org.jquantlib.math.distributions
Class NormalDistribution
- java.lang.Object
-
- org.jquantlib.math.distributions.NormalDistribution
-
- All Implemented Interfaces:
- Derivative, Ops.DoubleOp
- Direct Known Subclasses:
- CumulativeNormalDistribution, MoroInverseCumulativeNormal
public class NormalDistribution extends java.lang.Object implements Derivative
Provides the probability density function (pdf) of the (unit) normal distribution- See Also:
- Normal Distribution
-
-
Constructor Summary
Constructors Constructor and Description NormalDistribution()Default constructor which assumes and .NormalDistribution(double average)Default constructor which assumes .NormalDistribution(double average, double sigma)Constructor which initializes and .
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublederivative(double x)Computes the derivation of the function; f(x)doubleop(double x)
-
-
-
Constructor Detail
-
NormalDistribution
public NormalDistribution()
Default constructor which assumes and .
-
NormalDistribution
public NormalDistribution(double average)
Default constructor which assumes .- Parameters:
average-
-
NormalDistribution
public NormalDistribution(double average, double sigma)Constructor which initializes and .- Parameters:
average-sigma-
-
-
Method Detail
-
op
public double op(double x)
Computes the Normal distribution at point
- Specified by:
opin interfaceOps.DoubleOp- Parameters:
x-- Returns:
- the Normal distribution at point
-
derivative
public double derivative(double x)
Computes the derivation of the function; f(x)Calculates the first derivative of a Normal distribution at point
- Specified by:
derivativein interfaceDerivative- Parameters:
x-- Returns:
- the first derivative of a Normal distribution at point
-
-
DataMelt 3.0 © DataMelt by jWork.ORG