The present code is a Matlab function that implements a new time-domain based method for signal change detection using a frame-by-frame approach and a novel signal feature named “conditional local peaks rate” (CLPR) – the rate of the local signal peaks which are above their neighbors by some predefined threshold level. The basic unit of the proposed feature is “local peaks per sample” (lpps).
Several real-world examples are given in order to clarify the usage of the function. They indicate that CLPR could serve as a good detection procedure for a variety of anomalies or events in data. The examples show that in most of the cases the CLPR outperforms the classic change detection methods – short-time energy, short-time zero-crossing rate and short-time kurtosis.
For convenience, the input and output arguments are given in the beginning of the function.
The code is based on the theory described in:
 --- a research article dedicated to the new CLPR feature and signal change detection method is about to come by the end of June 2022. ---