Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimNoiseSourceRng Struct Reference

Mutable deterministic RNG state with cached normal sample. More...

#include <sim_noise_source.h>

Public Attributes

uint64_t state
 
uint64_t inc
 
bool normal_has_spare
 
double normal_spare
 

Detailed Description

Mutable deterministic RNG state with cached normal sample.

The state/inc pair implements the underlying uniform stream. The spare fields cache the second Box-Muller output so repeated scalar-normal calls consume the same sequence as paired normal generation.

Member Data Documentation

◆ inc

uint64_t SimNoiseSourceRng::inc

Odd stream increment derived from the seed sequence.

◆ normal_has_spare

bool SimNoiseSourceRng::normal_has_spare

True when normal_spare holds a cached sample.

◆ normal_spare

double SimNoiseSourceRng::normal_spare

Cached standard-normal sample.

◆ state

uint64_t SimNoiseSourceRng::state

Current generator state.


The documentation for this struct was generated from the following file: