Navigation
API > API/Runtime > API/Runtime/Core
Support for Sobol quasi-random numbers
| Name | FSobol |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Sobol.h |
| Include Path | #include "Math/Sobol.h" |
Syntax
class FSobol
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Cell2DDirectionNumbers | const int32 | 24-bit Sobol direction numbers per cell | Math/Sobol.h |
| Cell2DGrayNumbers | const int32 | 24-bit Sobol direction numbers per cell in Gray-code order | Math/Sobol.h |
| Cell3DDirectionNumbers | const int32 | 24-bit Sobol direction numbers per cell | Math/Sobol.h |
| Cell3DGrayNumbers | const int32 | 24-bit Sobol direction numbers per cell in Gray-code order | Math/Sobol.h |
| DirectionNumbers | const int32 | 24-bit Sobol direction numbers for 32-bit index | Math/Sobol.h |
| GrayNumbers | const int32 | 24-bit Sobol direction numbers for Gray code order | Math/Sobol.h |
| MaxCell2DBits | int32 | Maximum number of bits in a 2D cell coordinate allows cell grids from 1x1 to 2^MaxCell2DBits x 2^MaxCell2DBits | Math/Sobol.h |
| MaxCell3DBits | int32 | Maximum number of bits in a 3D cell coordinate allows cell grids from 1x1x1 to 2^MaxCell3DBits x 2^MaxCell3DBits x 2^MaxCell3DBits | Math/Sobol.h |
| MaxDimension | int32 | Number of Sobol dimensions in DirectionNumbers and GrayNumbers tables (full Joe and Kuo table is 21201) | Math/Sobol.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint16 ComputeGPUSpatialSeed
(
int32 x, |
Return value for GSystemTextures.SobolSampling | Math/Sobol.h | |
static float Evaluate
(
int32 Index, |
Evaluate Sobol number from one of the traditional Sobol dimensions at the given index | Math/Sobol.h | |
static FVector2D Evaluate
(
int32 Index, |
Evaluate Sobol number from within a 2D cell at given index | Math/Sobol.h | |
static FVector Evaluate
(
int32 Index, |
Evaluate Sobol number from within a 3D cell at given index | Math/Sobol.h | |
static float Next
(
int32 Index, |
Evaluate next Sobol number from one of the traditional Sobol dimensions | Math/Sobol.h | |
static FVector2D Next
(
int32 Index, |
Evaluate next Sobol number from within a 2D cell | Math/Sobol.h | |
static FVector Next
(
int32 Index, |
Evaluate next Sobol number from within a 3D cell | Math/Sobol.h |