|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Nodes::Generator::Logic::set_hysteresis | ( | double | low_threshold, |
| double | high_threshold, | ||
| bool | create_default_direct_function = false |
||
| ) |
Configures noise-resistant binary quantization with memory.
| low_threshold | Value below which input becomes false |
| high_threshold | Value above which input becomes true |
| create_default_direct_function | Whether to create a default direct function if none is set |
Implements a Schmitt trigger with separate thresholds for rising and falling transitions, preventing rapid oscillation when input hovers near the threshold. Essential for stable binary quantization of noisy signals.
Definition at line 324 of file Logic.cpp.
References MayaFlux::Nodes::Generator::DIRECT, MayaFlux::Nodes::Generator::HYSTERESIS, m_direct_function, m_high_threshold, m_hysteresis_state, m_low_threshold, m_mode, m_operator, and m_threshold.