Neuralyzer::Transforms::V2::AnalogIntervalThresholdParams
Neuralyzer::Transforms::V2::AnalogIntervalThresholdParams
Parameters for analog interval threshold detection. More…
#include <AnalogIntervalThreshold.hpp>
Public Types
| Name | |
|---|---|
| enum class | Direction { positive, negative, absolute} |
| enum class | MissingDataMode { ignore, treat_as_zero} |
Public Attributes
| Name | |
|---|---|
| float | threshold_value Threshold value for interval detection. |
| Direction | direction Direction of threshold crossing. |
| rfl::Validator< float, rfl::Minimum< 0.0f > > | lockout_time |
| rfl::Validator< float, rfl::Minimum< 0.0f > > | min_duration |
| MissingDataMode | missing_data_mode How to handle missing data gaps in the time series. |
Detailed Description
struct Neuralyzer::Transforms::V2::AnalogIntervalThresholdParams;Parameters for analog interval threshold detection.
Uses reflect-cpp for automatic JSON serialization/deserialization with validation.
This transform detects intervals in an analog time series where the signal meets specified threshold criteria. Unlike event threshold (which detects individual crossing points), this produces continuous intervals.
Example JSON: ```json
{ “threshold_value”: 1.0, “direction”: “positive”, “lockout_time”: 0.0, “min_duration”: 0.0, “missing_data_mode”: “treat_as_zero” }
## Public Types Documentation
### enum Direction
| Enumerator | Value | Description |
| ---------- | ----- | ----------- |
| positive | | |
| negative | | |
| absolute | | |
### enum MissingDataMode
| Enumerator | Value | Description |
| ---------- | ----- | ----------- |
| ignore | | |
| treat_as_zero | | |
## Public Attributes Documentation
### variable threshold_value
```cpp
float threshold_value = 1.0f;
Threshold value for interval detection.
variable direction
Direction direction = Direction::positive;Direction of threshold crossing.
variable lockout_time
rfl::Validator< float, rfl::Minimum< 0.0f > > lockout_time = 0.0f;Lockout time (in same units as time series) after interval ends before new one can start Must be non-negative
variable min_duration
rfl::Validator< float, rfl::Minimum< 0.0f > > min_duration = 0.0f;Minimum duration for an interval to be valid (in same units as time series) Must be non-negative
variable missing_data_mode
MissingDataMode missing_data_mode = MissingDataMode::treat_as_zero;How to handle missing data gaps in the time series.
Updated on 2026-11-13 at 20:25:41 +0000