Binomial
Extends:
Direct Subclass:
The Binomial Distribution is a discrete probability distribution with parameters n = number of trials and p = probability of success. See: Binomial Distribution
Static Method Summary
Static Public Methods | ||
public static |
Calculate the probability of k or less in B(n, p). |
|
public static |
Get the kurtosis of B(n,p). |
|
public static |
Get the mean of B(n,p). |
|
public static |
Calculate the probability of exaclty k in B(n, p). |
|
public static |
Generate a random value from B(n, p). |
|
public static |
Get the relative standard deviation of B(n,p). |
|
public static |
Get the skewness of B(n,p). |
|
public static |
Get the standard deviation of B(n,p). |
|
public static |
Get the variance of B(n,p). |
Inherited Summary
From class Distribution | ||
public static |
Generate a uniform random variable. |
|
public static |
Generate an array of k random values. |
|
public |
The distribution kurtosis. |
|
public |
The distribution mean. |
|
public |
The valitated distribution parameters. |
|
public |
The distribution relative standard deviation. |
|
public |
The distribution skewness. |
|
public |
The distribution standard deviation. |
|
public |
The distribution variance. |
|
public |
Calculate the probability of getting x or less. |
|
public |
Calculate the probability of exaclty x. |
|
public |
Generate a random value. |
|
public |
Generate an array of n random values. |
Static Public Methods
public static cdf(k: number, params: Object): number source
Calculate the probability of k or less in B(n, p).
Override:
Distribution#cdfpublic static kurtosis(params: Object): number source
Get the kurtosis of B(n,p).
Override:
Distribution#kurtosisParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |
public static mean(params: Object): number source
Get the mean of B(n,p).
Override:
Distribution#meanParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |
public static pdf(k: number, params: Object): number source
Calculate the probability of exaclty k in B(n, p).
Override:
Distribution#pdfpublic static random(params: Object): number source
Generate a random value from B(n, p).
Override:
Distribution#randomParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |
public static relStdDev(params: Object): number source
Get the relative standard deviation of B(n,p).
Override:
Distribution#relStdDevParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |
public static skewness(params: Object): number source
Get the skewness of B(n,p).
Override:
Distribution#skewnessParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |
public static stdDev(params: Object): number source
Get the standard deviation of B(n,p).
Override:
Distribution#stdDevParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |