timeseries

Utility methods for timeseries data.

AUTHORS:

  • THOMAS MCTAVISH (2011-09-13): initial version
neuronpy.util.timeseries.local_maxima(ts, window, threshold=0.0)[source]

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.

Previous topic

spiketrain

Next topic

vartest

This Page