Class NormalSampler
Returns normally distributed random values bounded within a specified range https://en.wikipedia.org/wiki/Truncated_normal_distribution
Implements
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Samplers
Assembly: solution.dll
Syntax
[Serializable]
public class NormalSampler : ISampler
Constructors
Name | Description |
---|---|
NormalSampler() | Constructs a normal distribution sampler |
NormalSampler(float, float, float, float) | Constructs a normal distribution sampler |
Fields
Name | Description |
---|---|
mean | The mean of the normal distribution to sample from |
range | A range bounding the values generated by this sampler |
standardDeviation | The standard deviation of the normal distribution to sample from |
Methods
Name | Description |
---|---|
Sample() | Generates one sample |
Validate() | Validates that the sampler is configured properly |