stepDetection
timed_boolean TPT.stepDetection(timed_float expr, int order, float scale)
Step detection analyzes the time dependent float expression expr(t) in order to find significant steps in the signal. This function works also for noisy signals.
The step detection uses the "double sigma method". A step in a signal is detected when
two consecutive samples of the signal have a minimum difference to a moving average of the
signal that is larger than scale
times the standard deviation of the moving
average with order order
.
Parameters:
expr Time dependent float expression that shall be analyzed
order Order of the moving average filter
scale Scales the standard deviation sigma
Returns:
Signal indicating whether step has been detected.
Examples:
# step detection in the acceleration pedal value # the moving average must be exceeded with at minimum 1.7 * Sigma # the moving average uses the 50 last time steps x = TPT.BooleanX(); x(t) := TPT.stepDetection(accleleration_pedal(t), 50, 1.7);
See Also: