Contents Up Previous Next

Peak-to-peak intervals

Purpose
Description
Example
Tips
Macro Synopsis
Modules
Related Functions


Purpose

Calculate intervals between successive peaks of a signal

Description

This function calculates the intervals between successive peaks/spikes in a signal and returns them as a new time series. Parameters are:

The total number of peaks detected by "Peak-to-peak intervals" will appear in the message window.

Example

"Peak-to-peak intervals" is useful to detect rhythms and deviations from periodicity in a signal showing peaks or iterated patterns. Try applying the function to the sample data file ecg.dpa.

Tips

Set window size to 0 if no windowing is needed. Note, however, that in most cases windowing will be handsome to eliminate small intermediate peaks that accompany the dominant peaks to be extracted.

Macro Synopsis

y = PeakToPeakIntervals(x,ws,peaktype,crossing,thresh,axistype);
signal x,y;
float ws;
option peaktype, crossing;
float thresh;
option axistype;

Modules

Nonlinear

Related Functions

Post event scan, Post event time histogram, Synchronicity histogram.