Constructors
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.
Entropy
#Gets the entropy of this distribution. Not all types of distribution have an entropy value, in which case this property returns NaN.
Mean
#Gets the mean of this distribution. Not all types of distribution have a mean, in which case this property returns NaN.
Median
#Gets the median of this distribution. Not all types of distribution have a median, in which case this property returns NaN.
Mode
#Gets the mode of this distribution. Not all types of distribution have a mode, in which case this property returns NaN.
Skewness
#Gets the statistical skewness of this distribution. Not all types of distribution have a skewness, in which case this property returns NaN.
Methods
CreateBernoulli
#Create a Bernoulli discrete distribution.
Parameters:
| p (double) | Chance of success (0, 1). |
CreateSampling
#Gets a collection of random samples within this distribution. This method should only be called when the distribution is discrete.
CreateSamplingConsistent
#Create a random sampling of this distribution which is more consistent but slower than the CreateSampling(Random, int) method.
Parameters:
| engine (RandomEngine) | Random engine to use. |
| count (int) | Number of samples to create. |
CumulativeAt
#Gets the cumulative distribution at x.
Parameters:
| x (double) | Parameter. |
Returns: Cumulative probability at x.
GetPreview
#Create a preview of the PDF and CDF functions.
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.