Interface IDistribution
Common interface for probability distributions.
Inherited Members
System.ICloneable.Clone()
Namespace: Mars.Numerics.Statistics
Assembly: Mars.Numerics.dll
Syntax
public interface IDistribution : ICloneable
Remarks
This interface is implemented by all probability distributions in the framework, including IUnivariateDistributions. This includes UnivariateDiscreteDistribution
Methods
| Improve this Doc View SourceDistributionFunction(Double[])
Gets the cumulative distribution function (cdf) for
this distribution evaluated at point
x
.
Declaration
double DistributionFunction(params double[] x)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
The Cumulative Distribution Function (CDF) describes the cumulative
probability that a given value or any value smaller than it will occur.
|
Improve this Doc
View Source
ProbabilityFunction(Double[])
Gets the probability density function (pdf) for
this distribution evaluated at point
x
.
Declaration
double ProbabilityFunction(params double[] x)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x | A single point in the distribution range. For a univariate distribution, this should be a single double value. For a multivariate distribution, this should be a double array. |
Returns
Type | Description |
---|---|
System.Double |
The probability of x occurring
in the current distribution.
|
Remarks
The Probability Density Function (PDF) describes the
probability that a given value
x
will occur.