Interface IUnivariateDistribution
Common interface for univariate probability distributions.
Inherited Members
Namespace: Mars.Numerics.Statistics.Base
Assembly: Mars.Numerics.dll
Syntax
public interface IUnivariateDistribution : IDistribution, ICloneable
Remarks
This interface is implemented by both univariate UnivariateDiscreteDistribution and Continuous Distributions .
Properties
Entropy
Gets entropy of the distribution.
Declaration
double Entropy { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's entropy. |
Mean
Gets the mean value for the distribution.
Declaration
double Mean { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's mean. |
Median
Gets the median value for the distribution.
Declaration
double Median { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's median. |
Mode
Gets the mode value for the distribution.
Declaration
double Mode { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's mode. |
Quartiles
Gets the Quartiles for this distribution.
Declaration
DoubleRange Quartiles { get; }
Property Value
Type | Description |
---|---|
DoubleRange | A DoubleRange object containing the first quartile (Q1) as its minimum value, and the third quartile (Q2) as the maximum. |
Support
Gets the support interval for this distribution.
Declaration
DoubleRange Support { get; }
Property Value
Type | Description |
---|---|
DoubleRange | A DoubleRange containing the support interval for this distribution. |
Variance
Gets the variance value for the distribution.
Declaration
double Variance { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's variance. |
Methods
GetRange(Double)
Gets the distribution range within a given percentile.
Declaration
DoubleRange GetRange(double percentile)
Parameters
Type | Name | Description |
---|---|---|
System.Double | percentile | The percentile at which the distribution ranges will be returned. |
Returns
Type | Description |
---|---|
DoubleRange | A DoubleRange object containing the minimum value for the distribution value, and the third quartile (Q2) as the maximum. |
Remarks
If
0.25
is passed as the percentile
argument,
this function returns the same as the Quartiles function.