Factors and Constraints
This page lists the built-in methods for creating random variables of different types that depend on the type of the input variable; such factors refer to a generic C# type T.
||Creates a random variable of type T that is a copy of the input variable. This is equivalent to creating a new variable and constraining it to be equal to the original variable.|
||Creates two copies of a random variable of type T. The copies will be updated in order during inference. Meant to be used as an inference hint.|
||Same as the copy factor, but during inference, backward messages are cut off.|
||Creates a random variable of type T defined in terms of its prior distribution of type TDist. This is useful when you want to specify your prior at run-time, for example when doing online learning where you want the posteriors from one step to be the priors for the next step. All the distribution factors documented in the various factor sections could be rewritten in terms of the Random factor.|