Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
sieve.h
Go to the documentation of this file.
1
8#ifndef OAKFIELD_SIEVE_H
9#define OAKFIELD_SIEVE_H
10
12
13#include <stdbool.h>
14#include <stddef.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20struct SimContext;
21
39
59
70 size_t *out_index);
71
82SimResult sim_sieve_config(struct SimContext *context, size_t operator_index,
83 SimSieveOperatorConfig *out_config);
84
98SimResult sim_sieve_update(struct SimContext *context, size_t operator_index,
99 const SimSieveOperatorConfig *config);
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif /* OAKFIELD_SIEVE_H */
SimResult
Return codes shared by libsimcore modules.
Definition field.h:29
SimIRBoundaryPolicy
Boundary handling policy for differential operators.
Definition kernel_ir.h:82
Declarative complex-first operator splitting (substep expansion at plan time).
SimSieveMode
Available response shapes for the sieve operator.
Definition sieve.h:25
@ SIM_SIEVE_MODE_HANN_HIGH_PASS
Definition sieve.h:33
@ SIM_SIEVE_MODE_SAVGOL_SMOOTH
Definition sieve.h:30
@ SIM_SIEVE_MODE_TUKEY_HIGH_PASS
Definition sieve.h:37
@ SIM_SIEVE_MODE_HIGH_PASS
Definition sieve.h:27
@ SIM_SIEVE_MODE_BAND_PASS_DOG
Definition sieve.h:28
@ SIM_SIEVE_MODE_BAND_STOP_DOG
Definition sieve.h:29
@ SIM_SIEVE_MODE_BLACKMAN_LOW_PASS
Definition sieve.h:34
@ SIM_SIEVE_MODE_SAVGOL_DERIVATIVE
Definition sieve.h:31
@ SIM_SIEVE_MODE_TUKEY_LOW_PASS
Definition sieve.h:36
@ SIM_SIEVE_MODE_LOW_PASS
Definition sieve.h:26
@ SIM_SIEVE_MODE_BLACKMAN_HIGH_PASS
Definition sieve.h:35
@ SIM_SIEVE_MODE_HANN_LOW_PASS
Definition sieve.h:32
SimResult sim_add_sieve_operator(struct SimContext *context, const SimSieveOperatorConfig *config, size_t *out_index)
Register a sieve filtering operator with the provided configuration.
SimResult sim_sieve_update(struct SimContext *context, size_t operator_index, const SimSieveOperatorConfig *config)
Update an existing sieve operator in-place.
SimResult sim_sieve_config(struct SimContext *context, size_t operator_index, SimSieveOperatorConfig *out_config)
Retrieve the configuration currently bound to a sieve operator.
Simulation runtime state.
Definition sim_context.h:70
Configuration parameters for the sieve operator family.
Definition sieve.h:43
size_t input_field
Definition sieve.h:44
SimSieveMode mode
Definition sieve.h:54
double sample_spacing
Definition sieve.h:51
unsigned int poly_order
Definition sieve.h:49
unsigned int taps
Definition sieve.h:46
size_t output_field
Definition sieve.h:45
double sigma
Definition sieve.h:47
double sigma2
Definition sieve.h:48
double gain
Definition sieve.h:53
SimIRBoundaryPolicy boundary
Definition sieve.h:55
bool accumulate
Definition sieve.h:56
unsigned int derivative_order
Definition sieve.h:50
bool scale_by_dt
Definition sieve.h:57
double window_alpha
Definition sieve.h:52