Class ConstantSampler
Returns a constant value when sampled
Implements
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Samplers
Assembly: solution.dll
Syntax
[Serializable]
public class ConstantSampler : ISampler
Constructors
| Name | Description |
|---|---|
| ConstantSampler() | Constructs a ConstantSampler |
| ConstantSampler(float) | Constructs a new ConstantSampler |
Fields
| Name | Description |
|---|---|
| value | The value from which samples will be generated |
Methods
| Name | Description |
|---|---|
| Sample() | Generates one sample |
| Validate() | Validates that the sampler is configured properly |