Flex.opCall

Sample a value from the distribution.

struct Flex(S, Pdf)
S
opCall
(
RNG
)
(
ref RNG rng
)
if (
isRandomEngine!RNG
)
if (
isFloatingPoint!S
)

Parameters

rng RNG

random number generator to use

Return Value

Type: S

Array of length n with the samples

Meta