Debugging function to turn off all Monte Carlo variation. With stochasticity off, every experiment based on the same configuration produces the same output. By default the system is set up with stochasticity on.

SetStochasticity(value = NULL)

Arguments

value

Desired stochasticity. (Calling SetStochasticity() with no parameters or value = NULL returns the current state.)

Value

Previous stochasticity flag value (invisible)

Examples

if (FALSE) {
pacehrh::SetStochasticity(FALSE) # Turn off stochasticity
pacehrh::SetStochasticity() # Return current stochasticity state
}