Namespaces

Types in MathNet.Numerics.Distributions

Type IContinuousDistribution

Namespace MathNet.Numerics.Distributions

Interfaces IUnivariateDistribution

Continuous Univariate Probability Distribution.

Methods

Properties

Public Methods

double Density(double x)

Computes the probability density of the distribution (PDF) at x, i.e. ∂P(X ≤ x)/∂x.
Parameters
double x

The location at which to compute the density.

Return
double

the density at x.

double DensityLn(double x)

Computes the log probability density of the distribution (lnPDF) at x, i.e. ln(∂P(X ≤ x)/∂x).
Parameters
double x

The location at which to compute the log density.

Return
double

the log density at x.

double Sample()

Draws a random sample from the distribution.
Return
double

a sample from the distribution.

void Samples(Double[] values)

Fills an array with samples generated from the distribution.

IEnumerable<double> Samples()

Draws a sequence of random samples from the distribution.
Return
IEnumerable<double>

an infinite sequence of samples from the distribution.

Public Properties

double Maximum get;

Gets the largest element in the domain of the distribution which can be represented by a double.

double Minimum get;

Gets the smallest element in the domain of the distribution which can be represented by a double.

double Mode get;

Gets the mode of the distribution.