ContinuousDistribution

References
[IoId("00000000-B4A7-4E81-8C71-899D55D0E8AD")] public struct ContinuousDistribution : IStorable
Represents a variety of continuous statistical distributions.

Constructors

ContinuousDistribution

#
public ContinuousDistribution(
reader
)

Fields

MinimumSuggestedInterval

#
Gets the suggested minimum length of a distribution interval.
public const double MinimumSuggestedInterval = 1E-12

Properties

Deviation

#
Gets the standard deviation of this distribution. Not all types of distribution have a meaningful deviation, in which case this property returns NaN.
public double Deviation { get; }

Entropy

#
Gets the entropy of this distribution. Not all types of distribution have an entropy value, in which case this property returns NaN.
public double Entropy { get; }

Maximum

#
Gets the largest parameter for which this distribution is defined.
public double Maximum { get; }

Mean

#
Gets the mean of this distribution. Not all types of distribution have a mean, in which case this property returns NaN.
public double Mean { get; }

Median

#
Gets the median of this distribution. Not all types of distribution have a median, in which case this property returns NaN.
public double Median { get; }

Minimum

#
Gets the smallest parameter for which this distribution is defined.
public double Minimum { get; }

Mode

#
Gets the mode of this distribution. Not all types of distribution have a mode, in which case this property returns NaN.
public double Mode { get; }

Skewness

#
Gets the statistical skewness of this distribution. Not all types of distribution have a skewness, in which case this property returns NaN.
public double Skewness { get; }

Type

#
Gets the type of this distribution.
public DistributionType Type { get; }

UnitInterval

#
Gets the default unit interval.
public static ContinuousDistribution UnitInterval { get; }

Variance

#
Gets the statistical variance of this distribution. Not all types of distribution have a variance, in which case this property returns NaN.
public double Variance { get; }

Methods

AdjustInterval

#
Assuming a non-decreasing progression, ensure that x0 and x1 are at least MinimumSuggestedInterval apart.
public static bool AdjustInterval(
ref double
x0,
Lower limit.
ref double
x1
Upper limit.
)
True if the limits were adjusted.

CreateBeta

#
Create a Beta distribution.
public static ContinuousDistribution CreateBeta()

CreateCauchy

#
Create a Cauchy distribution.
public static ContinuousDistribution CreateCauchy(
location,
scale
)

CreateChi

#
Create a Chi distribution.
public static ContinuousDistribution CreateChi(
degreesOfFreedom
)

CreateChiSquare

#
Create a Chi² distribution.
public static ContinuousDistribution CreateChiSquare(
degreesOfFreedom
)

CreateDirichlet2DSampling

#
Compute a two-dimensional Dirichlet distribution.
public static Point2d[] CreateDirichlet2DSampling(
count,
Size of data set.
(double a0, double a1, double a2)
alpha,
Alpha parameters.
engine
Random engine to use.
)
Random distribution.

CreateDirichlet2DSampling

#
Compute a two-dimensional Dirichlet distribution.
public static Point2d[] CreateDirichlet2DSampling(
count,
Size of data set.
alpha,
Constant alpha parameter.
engine
Random engine to use.
)
Random distribution.

CreateDirichlet3DSampling

#
Compute a three-dimensional Dirichlet distribution.
public static Point3d[] CreateDirichlet3DSampling(
count,
Size of data set.
(double a0, double a1, double a2, double a3)
alpha,
Alpha parameters.
engine
Random engine to use.
)
Random distribution.

CreateDirichlet3DSampling

#
Compute a three-dimensional Dirichlet distribution.
public static Point3d[] CreateDirichlet3DSampling(
count,
Size of data set.
alpha,
Constant alpha parameter.
engine
Random engine to use.
)
Random distribution.

CreateErlang

#
Create an Erlang distribution.
public static ContinuousDistribution CreateErlang(
shape,
rate
)

CreateFoldedNormal

#
Create a folded-normal distribution.
public static ContinuousDistribution CreateFoldedNormal(
mean,
deviation
)

CreateGamma

#
Create a Gamma distribution.
public static ContinuousDistribution CreateGamma(
shape,
rate
)

CreateGompertz

#
Create a Gompertz distribution.
public static ContinuousDistribution CreateGompertz(
shape,
scale
)

CreateIrwinHall

#
Create an Irwin-Hall distribution.
public static ContinuousDistribution CreateIrwinHall(
valence
)

CreateLaplace

#
Create a Laplace distribution.
public static ContinuousDistribution CreateLaplace(
location,
scale
)

CreateLogNormal

#
Create a Log-Normal distribution.
public static ContinuousDistribution CreateLogNormal(
mu,
sigma
)

CreateNormal

#
Create a normal distribution.
public static ContinuousDistribution CreateNormal(
mean,
deviation
)

CreatePareto

#
Create a Pareto distribution.
public static ContinuousDistribution CreatePareto(
shape,
scale
)

CreateRayleigh

#
Create a Rayleigh distribution.
public static ContinuousDistribution CreateRayleigh(
scale
)

CreateSampling

#
Gets a collection of random samples within this distribution. This method should only be called when the distribution is continuous.
public double[] CreateSampling(
random,
Random engine.
count
Number of samples.
)
Array of samples.

CreateSamplingConsistent

#
Create a random sampling of this distribution which is more consistent but slower than the CreateSampling(Random, int) method.
public double[] CreateSamplingConsistent(
engine,
Random engine to use.
count
Number of samples to create.
)

CreateStudentT

#
Create a Student-T distribution.
public static ContinuousDistribution CreateStudentT(
location,
scale,
degreesOfFreedom
)

CreateTriangular

#
Create a triangular distribution.
public static ContinuousDistribution CreateTriangular(
lower,
mode,
upper
)

CreateUniform

#
Create a uniform distribution.
public static ContinuousDistribution CreateUniform(
lower,
upper
)

CreateUPower

#
Create a U-Power distribution.
public static ContinuousDistribution CreateUPower(
lower,
upper,
power
)

CreateWeibull

#
Create a Weibull distribution.
public static ContinuousDistribution CreateWeibull(
shape,
scale
)

CreateWignerSemiCircle

#
Create a semi-elliptical distribution.
public static ContinuousDistribution CreateWignerSemiCircle(
lower,
Ellipse lower limit.
upper
Ellipse upper limit.
)

CumulativeAt

#
Gets the cumulative distribution at x.
public double CumulativeAt(
x
Parameter.
)
Cumulative probability at x.

GetCdfPreview

#
Create an approximation of the CDF curve for this distribution using the relevant interval.
public void GetCdfPreview(
samples,
Number of samples.
(double x0, double x1)
interval,
X-interval for graph.
out double[]
x,
X values of sample.
out double[]
y
Y values of samples.
)

GetCdfPreview

#
Create an approximation of the CDF curve for this distribution using the relevant interval.
public void GetCdfPreview(
samples,
Number of samples.
out double[]
x,
X values of sample.
out double[]
y
Y values of samples.
)

GetPdfPreview

#
Create an approximation of the PDF curve for this distribution using the relevant interval.
public void GetPdfPreview(
samples,
Number of samples.
(double x0, double x1)
interval,
X-interval for graph.
out double[]
x,
X values of sample.
out double[]
y
Y values of samples.
)

GetPdfPreview

#
Create an approximation of the PDF curve for this distribution using the relevant interval.
public void GetPdfPreview(
samples,
Number of samples.
out double[]
x,
X values of sample.
out double[]
y
Y values of samples.
)

GetRelevantInterval

#
Gets the relevant x-interval in which the distribution has the most detailed progression. This method is used to decide on which interval any distribution previews ought to be drawn.
public (double x0, double x1) GetRelevantInterval()

ProbabilityAt

#
Gets the probability density of the distribution at x.
public double ProbabilityAt(
x
Parameter.
)
Probability density at x.

Store

#
public void Store(
writer
)
Store

ToString

#
public override string ToString()