|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Log-polar interference stimulus with optional spiral phase drift. More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusLogPolarConfig |
| Configuration for log-polar interference stimulus fields. More... | |
Typedefs | |
| typedef struct SimStimulusLogPolarConfig | SimStimulusLogPolarConfig |
| Configuration for log-polar interference stimulus fields. | |
Functions | |
| SimResult | sim_add_stimulus_log_polar_operator (struct SimContext *context, const SimStimulusLogPolarConfig *config, size_t *out_index) |
| Register a log-polar interference stimulus operator. | |
| SimResult | sim_stimulus_log_polar_config (struct SimContext *context, size_t operator_index, SimStimulusLogPolarConfig *out_config) |
| Copy the current log-polar configuration from a registered operator. | |
| SimResult | sim_stimulus_log_polar_update (struct SimContext *context, size_t operator_index, const SimStimulusLogPolarConfig *config) |
| Replace or renormalize a registered log-polar stimulus configuration. | |
Log-polar interference stimulus with optional spiral phase drift.
Builds a phase field from log-radius and polar angle: phi = k_r * log(r + eps) + m * theta - omega * (t + t_0) + phi_0 and writes A * cos(phi) to real fields or A * exp(i * phi) to complex fields.
| SimResult sim_add_stimulus_log_polar_operator | ( | struct SimContext * | context, |
| const SimStimulusLogPolarConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a log-polar interference stimulus operator.
The implementation copies and normalizes config, then registers a split operator that evaluates the log-radius and angular phase field.
| context | Simulation context that will own the operator. | |
| config | Optional log-polar configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_log_polar_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusLogPolarConfig * | out_config | ||
| ) |
Copy the current log-polar configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_log_polar_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_log_polar_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusLogPolarConfig * | config | ||
| ) |
Replace or renormalize a registered log-polar stimulus configuration.
Passing NULL for config keeps the existing configuration and reapplies normalization. A successful update refreshes symbolic state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the log-polar operator to update. |
| config | Optional replacement configuration. |