Difference between revisions of "IsSampleEvalMode"

 
Line 11: Line 11:
 
==See Also==
 
==See Also==
 
* [[Sample]]
 
* [[Sample]]
 +
* [[Evaluation Modes]]
 
* [[Statistical Functions and Importance Weighting]]
 
* [[Statistical Functions and Importance Weighting]]

Latest revision as of 19:15, 15 March 2016


IsSampleEvalMode is a system variable that returns True (1) when evaluated in Prob (probabilistic) mode or False (0) when evaluated in Mid (deterministic) mode. For example:

Mid(IsSampleEvalMode) → 0
Sample(IsSampleEvalMode) → 1

It is useful when you write an expression, e.g. a function, that uses different logic in each case -- for example:

If IsSampleEvalMode then <<logic to generate a sample>>
Else <<logic to compute the median>>

See Also

Comments


You are not allowed to post comments.