TrialGate

data class TrialGate(val permille: Int, val salt: Long, val variable: String)(source)

Arms a fault on a fixed share of trials. Trial i sets variable to 1 when hash of i and salt is under permille, and to 0 otherwise; the arms of one experiment see the same pattern, so an intermittent failure keeps its rate. The hash is the one bench computes.

Constructors

Link copied to clipboard
constructor(permille: Int, salt: Long, variable: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val salt: Long
Link copied to clipboard

Functions

Link copied to clipboard
fun armed(trial: Int): Boolean
Link copied to clipboard
fun env(trial: Int): String