Type-safe floating point distribution. 更多...
#include <Distributions.h>
Public 成员函数 | |
| FFloatDistribution () | |
| Default constructor. | |
| FORCEINLINE void | GetRandomValue (float Time, float *RESTRICT OutValue, FRandomStream &RandomStream) const |
| Samples a value randomly distributed between two values. 更多... | |
| void | GetRange (float *OutMin, float *OutMax) |
| Computes the range of the distribution. 更多... | |
| FORCEINLINE void | GetValue (float Time, float *RESTRICT OutValue) const |
| Samples a value from the distribution. 更多... | |
友元 | |
| class | FComposableDistribution |
| This distribution is built from composable distributions. | |
Type-safe floating point distribution.
Raw distribution from which one float can be looked up per entry.
|
inline |
Samples a value randomly distributed between two values.
| Time | - Time at which to sample the distribution. |
| OutValue | - Upon return contains the sampled value. |
| RandomStream | - Random stream from which to retrieve random fractions. |
|
inline |
Computes the range of the distribution.
| OutMin | - The minimum value in the distribution. |
| OutMax | - The maximum value in the distribution. |
|
inline |
Samples a value from the distribution.
| Time | - Time at which to sample the distribution. |
| OutValue | - Upon return contains the sampled value. |