|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Additive stochastic noise operator (OU/pink/blue via spectral shaping and calculus law). More...


Go to the source code of this file.
Classes | |
| struct | StochasticNoiseOperatorConfig |
| Configuration parameters for the additive stochastic noise operator. More... | |
Typedefs | |
| typedef struct StochasticNoiseOperatorConfig | StochasticNoiseOperatorConfig |
| Configuration parameters for the additive stochastic noise operator. | |
Functions | |
| SimResult | sim_add_stochastic_noise_operator (struct SimContext *context, const StochasticNoiseOperatorConfig *config, size_t *out_index) |
| Register an additive stochastic noise operator. | |
| SimResult | sim_stochastic_noise_config (struct SimContext *context, size_t operator_index, StochasticNoiseOperatorConfig *out_config) |
| Copy the current stochastic noise configuration from a registered operator. | |
| SimResult | sim_stochastic_noise_update (struct SimContext *context, size_t operator_index, const StochasticNoiseOperatorConfig *config) |
| Replace or renormalize a registered stochastic noise configuration. | |
Additive stochastic noise operator (OU/pink/blue via spectral shaping and calculus law).
Noise can be interpreted under Ito/Stratonovich (see SimIRNoiseLaw). Real and complex fields are both supported; complex fields receive independent real/imaginary draws.
| SimResult sim_add_stochastic_noise_operator | ( | struct SimContext * | context, |
| const StochasticNoiseOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register an additive stochastic noise operator.
| context | Simulation context that will own the operator. | |
| config | Optional noise generation parameters; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stochastic_noise_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| StochasticNoiseOperatorConfig * | out_config | ||
| ) |
Copy the current stochastic noise configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stochastic_noise_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_stochastic_noise_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const StochasticNoiseOperatorConfig * | config | ||
| ) |
Replace or renormalize a registered stochastic noise configuration.
Passing NULL for config keeps the current configuration and reapplies normalization. A successful update reseeds the RNG and clears cached noise state buffers.
| context | Simulation context containing the operator. |
| operator_index | Index of the stochastic noise operator to update. |
| config | Optional replacement noise configuration. |