Class UniformSampler
Returns uniformly distributed random values within a designated range.
Implements
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Samplers
Assembly: solution.dll
Syntax
[Serializable]
public class UniformSampler : ISampler
Constructors
| Name | Description |
|---|---|
| UniformSampler() | Constructs a UniformSampler |
| UniformSampler(float, float) | Constructs a new uniform distribution sampler |
Fields
| Name | Description |
|---|---|
| range | A range bounding the values generated by this sampler |
Methods
| Name | Description |
|---|---|
| Sample() | Generates one sample |
| Validate() | Validates that the sampler is configured properly |