Constructs a Logic node with a specific boolean operator.
- Parameters
-
| op | Boolean operator to apply |
| threshold | Decision boundary for binary quantization |
Creates a Logic node configured with one of the standard boolean operations (AND, OR, XOR, etc.) using the specified threshold for binary quantization of inputs.
Definition at line 29 of file Logic.cpp.
41{
43}
size_t m_history_size
Maximum size of the history buffer.
EdgeType m_edge_type
Type of edge to detect.
double m_threshold
Threshold for boolean conversion.
double m_temporal_time
Time tracking for temporal mode.
double m_high_threshold
High threshold for hysteresis.
LogicOperator m_operator
Current logic operator.
void set_operator(LogicOperator op, bool create_default_direct_function=false)
Sets the boolean operation to perform.
double m_low_threshold
Low threshold for hysteresis.
bool m_edge_detected
Whether an edge was detected in the last processing.
bool m_hysteresis_state
State for hysteresis operator.
LogicMode m_mode
Current processing mode.
size_t m_input_count
Expected number of inputs for multi-input mode.
@ BOTH
Any state transition.
@ DIRECT
Stateless evaluation of current input only (combinational logic)
References set_operator().