|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
True white-noise stimulus with seeded RNG and complex support. More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusWhiteNoiseConfig |
| Configuration for seeded Gaussian white-noise stimulus injection. More... | |
Typedefs | |
| typedef struct SimStimulusWhiteNoiseConfig | SimStimulusWhiteNoiseConfig |
| Configuration for seeded Gaussian white-noise stimulus injection. | |
Functions | |
| SimResult | sim_add_stimulus_white_noise_operator (struct SimContext *context, const SimStimulusWhiteNoiseConfig *config, size_t *out_index) |
| Register a seeded white-noise stimulus operator. | |
| SimResult | sim_stimulus_white_noise_config (struct SimContext *context, size_t operator_index, SimStimulusWhiteNoiseConfig *out_config) |
| Copy the current white-noise configuration from a registered operator. | |
| SimResult | sim_stimulus_white_noise_update (struct SimContext *context, size_t operator_index, const SimStimulusWhiteNoiseConfig *config) |
| Replace or renormalize a registered white-noise stimulus configuration. | |
True white-noise stimulus with seeded RNG and complex support.
Injects independent Gaussian white noise into a target field each step. For complex fields, independent noise is applied to real and imaginary components. The operator is deterministic given its seed.
| SimResult sim_add_stimulus_white_noise_operator | ( | struct SimContext * | context, |
| const SimStimulusWhiteNoiseConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a seeded white-noise stimulus operator.
The implementation copies and normalizes config, derives a deterministic stream when the seed is zero, and registers the noise operator on the target field.
| context | Simulation context that will own the operator. | |
| config | Optional white-noise configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_white_noise_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusWhiteNoiseConfig * | out_config | ||
| ) |
Copy the current white-noise configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_white_noise_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_white_noise_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusWhiteNoiseConfig * | config | ||
| ) |
Replace or renormalize a registered white-noise stimulus configuration.
Passing NULL for config keeps the existing configuration and reapplies normalization. A successful update refreshes RNG state when needed and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the white-noise operator to update. |
| config | Optional replacement configuration. |