Bernoulli
Extends:
The Bernoulli Distribution is a discrete probability distribution with parameter p = probability of success. See: Bernoulli Distribution
Static Method Summary
Static Public Methods | ||
public static |
Calculate the probability of k or less in B(1, p). |
|
public static |
Calculate the probability of exaclty k in B(1, p). |
|
public static |
Generate a random value from B(1, p). |
Constructor Summary
Public Constructor | ||
public |
constructor(params: Object) Generate a new Bernoulli object. |
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. |
From class Binomial | ||
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). |
Static Public Methods
public static cdf(k: number, params: Object): number source
Calculate the probability of k or less in B(1, p).
Override:
Binomial#cdfpublic static pdf(k: number, params: Object): number source
Calculate the probability of exaclty k in B(1, p).
Override:
Binomial#pdfPublic Constructors
public constructor(params: Object) source
Generate a new Bernoulli object.
Override:
Distribution#constructorParams:
Name | Type | Attribute | Description |
params | Object | The distribution parameters. |