Utility methods for timeseries data.
AUTHORS:
Determine local peaks of a time series signal. :param ts: Time series signal. :param window: minimum number of samples to filter out subpeaks. :param threshold: minimum value to be declared a peak.
Returns: | Two vectors. The first vector are the peak values, the second vector are the associated indices. |
---|