Random
final class Random<Value> < Expression<Value>(nil, false)
Random variate.
- Value Value type.
Random objects, like all Expression objects,
are stateful. Random objects in the pilot state are considered
variables, meaning that a call to grad()
will compute gradients with
respect to them, and a further call to move()
will apply a Markov kernel
to update their value. Random objects in the value state are considered
constants.
Assignments
Name | Description |
---|---|
Value! | Value assignment. |
Member Functions
Name | Description |
---|---|
set | Value assignment. |
hasDistribution | Does this have a distribution? |
getDistribution | Get the distribution. |
Member Function Details
getDistribution
function getDistribution() -> Distribution<Value>
Get the distribution.
hasDistribution
function hasDistribution() -> Boolean
Does this have a distribution?
set
function set(x:Value!)
Value assignment.