The OpenD Programming Language

cauchyVar

$(WIKI_D Cauchy).

cauchyVar
(
T = double
)
(
in T location = 0.0
,
in T scale = 1
)

Return Value

Type: CauchyVariable!T

X ~ Cauchy(x, γ)

Examples

auto rv = cauchyVar;
static assert(isRandomVariable!(typeof(rv)));
import mir.random.engine;
auto x = rv(rne);
import mir.random.engine;
Random* gen = threadLocalPtr!Random;
auto rv = CauchyVariable!double(0, 1);
auto x = rv(gen);

Meta