28 int16_t config_memory[3] = {config[
"memory_factor_plane0"],
29 config[
"memory_factor_plane1"],
30 config[
"memory_factor_plane2"]};
31 int16_t config_scale[3] = {config[
"scale_factor_plane0"],
32 config[
"scale_factor_plane1"],
33 config[
"scale_factor_plane2"]};
35 for (
int i = 0; i < 16; i++) {
48 for (
int i = 0; i < 16; i++) {
55 int32_t intermediate = scaled_signal + scaled_rs;
#define REGISTER_NAIVEPROCESSOR_CREATOR(processor_name, processor_class)
Factory registration macro.
ProcessorInternalStateBufferManager< std::array< int16_t, 16 > > m_internal_state_buffer_manager
std::atomic< uint64_t > m_samples
ProcessorInternalStateNameRegistry< std::array< int16_t, 16 > > m_internal_state_name_registry
virtual void configure_internal_state_collection(const nlohmann::json &config)
bool m_collect_internal_state_flag
virtual naive_array_t process(const naive_array_t &signal) override
Simple signal pass-through on naive type.
std::array< int16_t, 16 > naive_array_t
The naive version uses a standard array instead of __m256i.
Naive signal processor: Calculates the running sum of the signal.
naive_array_t m_scale_factor
The S factor in the model equation.
void configure(const nlohmann::json &config, const int16_t *plane_numbers) override
Configures the R factor and S factor according to plane.
naive_array_t process(const naive_array_t &signal) override
Calculate and store the running sum.
naive_array_t m_running_sum
The RS in the model equation.
naive_array_t m_memory_factor
The R factor in the model equation.
int16_t _naive_div_int16(const int16_t &a, const int16_t &b)
Naive model of AVX division in AVXUtils.