The OpenD Programming Language

mir.random.variable

,

Utilities

NameDescription
isRandomVariableTrait

$(TR $(TDNW $(LREF BernoulliVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Bernoulli_distribution, Bernoulli random variable))) $(TR $(TDNW $(LREF Bernoulli2Variable)) $(TD Optimized $(HTTP en.wikipedia.org/wiki/Bernoulli_distribution, Bernoulli random variable) for <tt class="inline-code">p = 1/2</tt>)) $(TR $(TDNW $(LREF BetaVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Beta_distribution, Beta random variable))) $(TR $(TDNW $(LREF BinomialVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Binomial_distribution, Binomial random variable))) $(TR $(TDNW $(LREF CauchyVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Cauchy_distribution, Cauchy random variable))) $(TR $(TDNW $(LREF ChiSquaredVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Chi-squared_distribution, Chi-squared random variable))) $(TR $(TDNW $(LREF DiscreteVariable)) $(TD Discrete distribution)) $(TR $(TDNW $(LREF ExponentialVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Exponential_distribution, Exponential random variable))) $(TR $(TDNW $(LREF ExtremeValueVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Generalized_extreme_value_distribution, Extreme value random variable))) $(TR $(TDNW $(LREF FisherFVariable)) $(TD $(HTTP en.wikipedia.org/wiki/F_distribution, F random variable))) $(TR $(TDNW $(LREF GammaVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Gamma_distribution, Gamma random variable))) $(TR $(TDNW $(LREF GeometricVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Geometric_distribution, Geometric random variable))) $(TR $(TDNW $(LREF LogNormalVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Log-normal_distribution, Log-normal random variable))) $(TR $(TDNW $(LREF NegativeBinomialVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Negative_binomial_distribution, Negative_binomial random variable))) $(TR $(TDNW $(LREF NormalVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Normal_distribution, Normal random variable))) $(TR $(TDNW $(LREF PiecewiseConstantVariable)) $(TD Piecewise constant distribution)) $(TR $(TDNW $(LREF PiecewiseLinearVariable)) $(TD Piecewise linear distribution)) $(TR $(TDNW $(LREF PoissonVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Poisson_distribution, Poisson random variable))) $(TR $(TDNW $(LREF StudentTVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Student's_t_distribution, Student's_t random variable))) $(TR $(TDNW $(LREF UniformVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Discrete_uniform_distribution, Discrete_uniform random variable) and <a href="http://en.wikipedia.org/wiki/Uniform_distribution_(continuous)">Uniform distribution (continuous)</a>)) $(TR $(TDNW $(LREF WeibullVariable)) $(TD $(HTTP en.wikipedia.org/wiki/Weibull_distribution, Weibull random variable)))

Random Variables

Generator nameDescription

Members

Aliases

bernoulli2Variable
alias bernoulli2Variable = bernoulli2Var

$(WIKI_D Bernoulli). A fast specialization for p := 1/2.

bernoulliVariable
alias bernoulliVariable = bernoulliVar

$(WIKI_D Bernoulli).

betaVariable
alias betaVariable = betaVar

$(WIKI_D Beta).

binomialVariable
alias binomialVariable = binomialVar

$(WIKI_D Binomial).

cauchyVariable
alias cauchyVariable = cauchyVar

$(WIKI_D Cauchy).

discreteVariable
alias discreteVariable = discreteVar

_Discrete distribution sampler that draws random values from a _discrete distribution given an array of the respective probability density points (weights).

exponentialVariable
alias exponentialVariable = exponentialVar

$(WIKI_D Exponential).

extremeValueVariable
alias extremeValueVariable = extremeValueVar

$(WIKI_D2 Generalized_extreme_value, Extreme value).

fisherFVariable
alias fisherFVariable = fisherFVar

$(WIKI_D F).

gammaVariable
alias gammaVariable = gammaVar

$(WIKI_D Gamma).

geometricVariable
alias geometricVariable = geometricVar

$(WIKI_D Geometric).

logNormalVariable
alias logNormalVariable = logNormalVar

$(WIKI_D Log-normal).

negativeBinomialVariable
alias negativeBinomialVariable = negativeBinomialVar

$(WIKI_D Negative_binomial).

normalVariable
alias normalVariable = normalVar

$(WIKI_D Normal).

piecewiseConstantVariable
alias piecewiseConstantVariable = piecewiseConstantVar
piecewiseLinearVariable
alias piecewiseLinearVariable = piecewiseLinearVar

Piecewise constant variable.

poissonVariable
alias poissonVariable = poissonVar

$(WIKI_D Poisson).

studentTVariable
alias studentTVariable = studentTVar

$(WIKI_D Student's_t).

weibullVariable
alias weibullVariable = weibullVar

$(WIKI_D Weibull).

Enums

RandomVariable
enum RandomVariable

User Defined Attribute definition for Random Variable.

Functions

bernoulli2Var
Bernoulli2Variable bernoulli2Var()

$(WIKI_D Bernoulli). A fast specialization for p := 1/2.

bernoulliVar
BernoulliVariable!T bernoulliVar(T p)

$(WIKI_D Bernoulli).

betaVar
BetaVariable!T betaVar(T a, T b)

$(WIKI_D Beta).

binomialVar
BinomialVariable!T binomialVar(size_t r, T p)

$(WIKI_D Binomial).

cauchyVar
CauchyVariable!T cauchyVar(T location, T scale)

$(WIKI_D Cauchy).

chiSquared
ChiSquaredVariable!T chiSquared(size_t k)

$(WIKI_D Chi-squared).

discreteVar
DiscreteVariable!T discreteVar(T[] weights, bool cumulative)

_Discrete distribution sampler that draws random values from a _discrete distribution given an array of the respective probability density points (weights).

exponentialVar
ExponentialVariable!T exponentialVar(T scale)

$(WIKI_D Exponential).

extremeValueVar
ExtremeValueVariable!T extremeValueVar(T location, T scale)

$(WIKI_D2 Generalized_extreme_value, Extreme value).

fisherFVar
FisherFVariable!T fisherFVar(T d1, T d2)

$(WIKI_D F).

gammaVar
GammaVariable!T gammaVar(T shape, T scale)

$(WIKI_D Gamma).

geometricVar
GeometricVariable!T geometricVar(T p, bool success)

$(WIKI_D Geometric).

logNormalVar
LogNormalVariable!T logNormalVar(T normalLocation, T normalScale)

$(WIKI_D Log-normal).

negativeBinomialVar
NegativeBinomialVariable!T negativeBinomialVar(size_t r, T p)

$(WIKI_D Negative_binomial).

normalVar
NormalVariable!T normalVar(T location, T scale)

$(WIKI_D Normal).

piecewiseConstantVar
PiecewiseConstantVariable!(T, W) piecewiseConstantVar(T[] intervals, W[] weights, bool cumulative)
piecewiseLinearVar
PiecewiseLinearVariable!T piecewiseLinearVar(T[] points, T[] weights, T[] areas)

Piecewise constant variable.

poissonVar
PoissonVariable!T poissonVar(T rate)

$(WIKI_D Poisson).

studentTVar
StudentTVariable!T studentTVar(T nu)

$(WIKI_D Student's_t).

uniformVar
UniformVariable!T uniformVar(T a, T b)

$(WIKI_D Discrete_uniform).

uniformVar
UniformVariable!T uniformVar(T a, T b)

Uniform distribution (continuous).

uniformVariable
UniformVariable!T uniformVariable(T a, T b)

$(WIKI_D Discrete_uniform).

uniformVariable
UniformVariable!T uniformVariable(T a, T b)

Uniform distribution (continuous).

weibullVar
WeibullVariable!T weibullVar(T shape, T scale)

$(WIKI_D Weibull).

Structs

Bernoulli2Variable
struct Bernoulli2Variable

$(WIKI_D Bernoulli). A fast specialization for p := 1/2.

BernoulliVariable
struct BernoulliVariable(T)

$(WIKI_D Bernoulli).

BetaVariable
struct BetaVariable(T)

$(WIKI_D Beta).

BinomialVariable
struct BinomialVariable(T)

$(WIKI_D Binomial).

CauchyVariable
struct CauchyVariable(T)

$(WIKI_D Cauchy).

ChiSquaredVariable
struct ChiSquaredVariable(T)

$(WIKI_D Chi-squared).

DiscreteVariable
struct DiscreteVariable(T)

_Discrete distribution sampler that draws random values from a _discrete distribution given an array of the respective probability density points (weights).

ExponentialVariable
struct ExponentialVariable(T)

$(WIKI_D Exponential).

ExtremeValueVariable
struct ExtremeValueVariable(T)

$(WIKI_D2 Generalized_extreme_value, Extreme value).

FisherFVariable
struct FisherFVariable(T)

$(WIKI_D F).

GammaVariable
struct GammaVariable(T, bool Exp = false)

$(WIKI_D Gamma).

GeometricVariable
struct GeometricVariable(T)

$(WIKI_D Geometric).

LogNormalVariable
struct LogNormalVariable(T)

$(WIKI_D Log-normal).

NegativeBinomialVariable
struct NegativeBinomialVariable(T)

$(WIKI_D Negative_binomial).

NormalVariable
struct NormalVariable(T)

$(WIKI_D Normal).

PiecewiseConstantVariable
struct PiecewiseConstantVariable(T, W = T)

Piecewise constant variable.

PiecewiseLinearVariable
struct PiecewiseLinearVariable(T)

Piecewise constant variable.

PoissonVariable
struct PoissonVariable(T)

$(WIKI_D Poisson).

StudentTVariable
struct StudentTVariable(T)

$(WIKI_D Student's_t).

UniformVariable
struct UniformVariable(T)

$(WIKI_D Discrete_uniform).

UniformVariable
struct UniformVariable(T)

Uniform distribution (continuous).

WeibullVariable
struct WeibullVariable(T)

$(WIKI_D Weibull).

Templates

isRandomVariable
template isRandomVariable(T)

Test if T is a random variable.

Meta

Authors

Ilya Yaroshenko, Sebastian Wilzbach (DiscreteVariable)