Threshold evaluation function#
-
float uz_signals_threshold_Evaluation(float input, float threshold)#
Evaluates the input. sets the output to one if the input is bigger than the threshold value otherwise to zero.
- Parameters:
input – Any input signal
threshold – Threshold value for evaluation
- Returns:
float evaluation value (0 or 1)
Example#
1#include "uz_signals.h"
2int main(void) {
3 float input = 2.0f;
4 float threshold = 0.5f;
5 float output = uz_signals_threshold_Evaluation(input, threshold);
6}
Description#
Evaluates the input. Sets the output to one if the input is bigger than the threshold value otherwise the output is zero.