00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PEAKFINDER_H_
00024 #define PEAKFINDER_H_
00025
00026 #include <vector>
00027
00035 class PeakFinder{
00036 public:
00038 virtual void findPeaks(const std::vector<double>& signal, std::vector<unsigned int>& indexes) const = 0;
00039
00041 virtual void findPeaks(const std::vector< std::vector<double> >& signal, std::vector< std::vector<unsigned int> >& indexes) const = 0;
00042
00044 virtual bool isPeak(const std::vector<double>& signal, unsigned int index) const = 0;
00045
00047 virtual bool isPeak(const std::vector< std::vector<double> >& signal, unsigned int index1, unsigned int index2) const = 0;
00048 };
00049
00050 #endif