|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Gabor kernel stimulus (Gaussian-windowed sinusoid) for 1D/2D fields. More...


Go to the source code of this file.
Classes | |
| struct | SimStimulusGaborConfig |
| Configuration for a Gaussian-windowed Gabor kernel stimulus. More... | |
Typedefs | |
| typedef struct SimStimulusGaborConfig | SimStimulusGaborConfig |
| Configuration for a Gaussian-windowed Gabor kernel stimulus. | |
Functions | |
| SimResult | sim_add_stimulus_gabor_operator (struct SimContext *context, const SimStimulusGaborConfig *config, size_t *out_index) |
| Register a Gaussian-windowed Gabor stimulus operator. | |
| SimResult | sim_stimulus_gabor_config (struct SimContext *context, size_t operator_index, SimStimulusGaborConfig *out_config) |
| Copy the current Gabor configuration from a registered operator. | |
| SimResult | sim_stimulus_gabor_update (struct SimContext *context, size_t operator_index, const SimStimulusGaborConfig *config) |
| Replace or renormalize a registered Gabor stimulus configuration. | |
Gabor kernel stimulus (Gaussian-windowed sinusoid) for 1D/2D fields.
Supports real and complex fields. For complex fields, the kernel is written with an additional global phase rotation.
| SimResult sim_add_stimulus_gabor_operator | ( | struct SimContext * | context, |
| const SimStimulusGaborConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a Gaussian-windowed Gabor stimulus operator.
The implementation copies and normalizes config, prepares envelope storage, and registers the operator on the configured target field.
| context | Simulation context that will own the operator. | |
| config | Optional Gabor configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_stimulus_gabor_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimStimulusGaborConfig * | out_config | ||
| ) |
Copy the current Gabor configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_stimulus_gabor_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_stimulus_gabor_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimStimulusGaborConfig * | config | ||
| ) |
Replace or renormalize a registered Gabor stimulus configuration.
Passing NULL for config keeps the existing configuration and reapplies normalization. A successful update refreshes envelope and symbolic state, then invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the Gabor operator to update. |
| config | Optional replacement configuration. |