Skip to content

Random

class Random<Value> < Expression<Value>

Random variate.

  • Value: Value type.

Factory Functions

Name Description
Random Create random variate with attached distribution.
Random Create random variate with attached distribution.
Random Create random variate with attached distribution.
Random Create random variate with attached distribution.
Random Create random variate with attached distribution.
Random Create random variate with attached distribution.

Assignments

Name Description
Value Value assignment.
Value? Optional value assignment.

Member Variables

Name Description
x:Value? Value.
dist:Distribution<Value>? Associated distribution.

Member Functions

Name Description
assume Attach a distribution to this random variable.
value Get the value of the random variable, forcing realization if necessary.
isMissing Are the values of any random variables within this expression missing?

Factory Function Details

function Random(dist:Distribution<Boolean>) -> Random<Boolean>

Create random variate with attached distribution.

function Random(dist:Distribution<Integer>) -> Random<Integer>

Create random variate with attached distribution.

function Random(dist:Distribution<Real>) -> Random<Real>

Create random variate with attached distribution.

function Random(dist:Distribution<Boolean[_]>) -> Random<Boolean[_]>

Create random variate with attached distribution.

function Random(dist:Distribution<Integer[_]>) -> Random<Integer[_]>

Create random variate with attached distribution.

function Random(dist:Distribution<Real[_]>) -> Random<Real[_]>

Create random variate with attached distribution.

Member Function Details

assume

function assume(dist:Distribution<Value>)

Attach a distribution to this random variable.

isMissing

function isMissing() -> Boolean

Are the values of any random variables within this expression missing?

value

function value() -> Value

Get the value of the random variable, forcing realization if necessary.