Class BooleanParameter
A numeric parameter for generating boolean samples
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Parameters
Syntax
public class BooleanParameter : NumericParameter<bool>
Fields
threshold
A threshold value that transforms random values within the range [0, 1] to boolean values. Values greater than the threshold are true, and values less than the threshold are false.
Declaration
public float threshold
Field Value
Type | Description |
---|---|
Single |
value
The sampler used as a source of random values for this parameter
Declaration
public ISampler value
Field Value
Type | Description |
---|---|
ISampler |
Methods
Sample()
Generates a boolean sample
Declaration
public override bool Sample()
Returns
Type | Description |
---|---|
Boolean | The generated sample |
Overrides
UnityEngine.Perception.Randomization.Parameters.NumericParameter<System.Boolean>.Sample()