ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
Loading...
Searching...
No Matches
filters.h File Reference
#include <cstdint>
#include <cstddef>
#include "filter_config.h"

Go to the source code of this file.

Classes

struct  espectre::lowpass_filter_state_t
struct  espectre::hampel_turbulence_state_t

Namespaces

namespace  espectre

Typedefs

using espectre::hampel_filter_state_t = hampel_turbulence_state_t

Functions

void espectre::lowpass_filter_init (lowpass_filter_state_t *state, float cutoff_hz, float sample_rate_hz, bool enabled)
float espectre::lowpass_filter_apply (lowpass_filter_state_t *state, float value)
void espectre::lowpass_filter_reset (lowpass_filter_state_t *state)
void espectre::hampel_turbulence_init (hampel_turbulence_state_t *state, uint8_t window_size, float threshold, bool enabled)
float espectre::hampel_filter (const float *window, size_t window_size, float current_value, float threshold)
 Stateless Hampel decision over a caller-owned window.
float espectre::hampel_filter_turbulence (hampel_turbulence_state_t *state, float turbulence)

Variables

constexpr float espectre::MAD_SCALE_FACTOR = 1.4826f