Pink 0.9

longestplateau.c File Reference

finds the location of the longest plateau in 1D sequence More...


Detailed Description

finds the location of the longest plateau in 1D sequence

Usage: longestplateau in.list [tolerance] out.list

Description:

Reads the sequence S from the file in.list. This file must have the following format:

  
  e <n>
  x1
  x2
  ...
  xn

The tolerance t (float) is given by the parameter tolerance (default value is 0). A plateau is a subsequence P of S formed by consecutive elements of P, between indices i and j, and such that max{P[k];i<=k<=j} - min{P[k];i<=k<=j} <= t. The program returns the base index and length of the first occurence of a plateau with maximal length in S.

Types supported: list 1D

Category: signal

Author:
Michel Couprie