FsRandom


Statistics

Provides generator functions related to statistical random distributions.

Nested types and modules

ModuleDescription
Seq
Standard

Functions and values

Function or valueDescription
bernoulli probability
Signature: probability:float -> GeneratorFunction<int>

Returns a random number distributed Bernoulli.

beta (alpha, beta)
Signature: (alpha:float * beta:float) -> GeneratorFunction<float>

Returns a random number distributed beta.

binomial (n, probability)
Signature: (n:int * probability:float) -> GeneratorFunction<int>

Returns a random number distributed binomially.

cauchy (location, scale)
Signature: (location:float * scale:float) -> GeneratorFunction<float>

Returns a random number distributed Cauchy.

chisquare degreeOfFreedom
Signature: degreeOfFreedom:int -> GeneratorFunction<float>

Returns a random number distributed chi-square.

dirichlet alpha
Signature: alpha:float list -> GeneratorFunction<float list>

Returns a random number distributed Dirichlet.

exponential rate
Signature: rate:float -> GeneratorFunction<float>

Returns a random number distributed exponentially.

gamma (shape, scale)
Signature: (shape:float * scale:float) -> GeneratorFunction<float>

Returns a random number distributed gamma.

geometric0 probability
Signature: probability:float -> GeneratorFunction<int>

Returns a random number distributed geometcally on {0, 1, 2, ...}.

geometric1 probability
Signature: probability:float -> GeneratorFunction<int>

Returns a random number distributed geometcally on {1, 2, 3, ...}.

gumbel (location, scale)
Signature: (location:float * scale:float) -> GeneratorFunction<float>

Returns a random number distributed Gumbel.

lognormal (mu, sigma)
Signature: (mu:float * sigma:float) -> GeneratorFunction<float>

Returns a random number distributed log-normally.

loguniform (min, max)
Signature: (min:float * max:float) -> GeneratorFunction<float>

Returns a random number distributed log-uniformly in the range of [, ].

mix distributions
Signature: distributions:(GeneratorFunction<'a> * float) list -> GeneratorFunction<'a>
Type parameters: 'a

Returns a mixted distribution.

multinomial (n, weight)
Signature: (n:int * weight:float list) -> GeneratorFunction<int list>

Returns a random number distributed multinomially.

multinormal (mu, sigma)
Signature: (mu:float [] * sigma:float [,]) -> GeneratorFunction<float []>

Returns a random vector distributed multinormally.

negativeBinomial (r, probability)
Signature: (r:float * probability:float) -> GeneratorFunction<int>

Returns a random number distributed negative binomially.

normal (mean, standardDeviation)
Signature: (mean:float * standardDeviation:float) -> GeneratorFunction<float>

Returns a random number distributed normally.

poisson lambda
Signature: lambda:float -> GeneratorFunction<int>

Returns a random number distributed Poisson.

studentT degreeOfFreedom
Signature: degreeOfFreedom:int -> GeneratorFunction<float>

Returns a random number distributed Student-t.

t degreeOfFreedom
Signature: degreeOfFreedom:int -> GeneratorFunction<float>

Returns a random number distributed Student-t.

triangular (min, max, mode)
Signature: (min:float * max:float * mode:float) -> GeneratorFunction<float>

Returns a random number distributed triangular.

uniform (min, max)
Signature: (min:float * max:float) -> GeneratorFunction<float>

Returns a random number distributed uniformly in the range of [, ].

uniformDiscrete (min, max)
Signature: (min:int * max:int) -> GeneratorFunction<int>

Returns a random number distributed uniformly.

vonMises (direction, concentration)
Signature: (direction:float * concentration:float) -> GeneratorFunction<float>

Returns a random number distributed von Mises.

weibull (shape, scale)
Signature: (shape:float * scale:float) -> GeneratorFunction<float>

Returns a random number distributed Weibull.

wishart (degreeOfFreedom, sigma)
Signature: (degreeOfFreedom:int * sigma:float [,]) -> GeneratorFunction<float [,]>

Returns a random matrix distributed Wishart.

Fork me on GitHub