Add braking detection algorithm
Add braking detection algorithm

Determine when braking occurs using filtered acceleration. Due to the
trial procedure, a only single, discernible braking event occurs near
the end of the record.

1) The signal is split into ranges where the value exceeds a threshold
2) Ranges smaller than a minimum size are excluded
3) Ranges that are separated by less than minimum size samples and
   retain the same sign are merged
4) The largest range is the one with the largest integrated value

oliverlee/antlia