Struct NormalSampler
Returns normally distributed random values bounded within a specified range https://en.wikipedia.org/wiki/Truncated_normal_distribution
Implements
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Samplers
Assembly: solution.dll
Syntax
[Serializable]
public struct NormalSampler : ISampler
Constructors
Name | Description |
---|---|
NormalSampler(float, float, float, float, uint) | Constructs a normal distribution sampler |
Fields
Name | Description |
---|---|
mean | The mean of the normal distribution to sample from |
standardDeviation | The standard deviation of the normal distribution to sample from |
Properties
Name | Description |
---|---|
baseSeed | The base seed used to initialize this sampler's state |
range | A range bounding the values generated by this sampler |
state | The current random state of this sampler |
Methods
Name | Description |
---|---|
IterateState(int) | Deterministically offsets a sampler's state |
ResetState() | Resets a sampler's state to its base random seed |
Sample() | Generates one sample |
Samples(int, out JobHandle) | Schedules a job to generate an array of samples |