00001 /***************************************************************** 00002 * 00003 * This file is part of the FLIRTLib project 00004 * 00005 * FLIRTLib Copyright (c) 2010 Gian Diego Tipaldi and Kai O. Arras 00006 * 00007 * This software is licensed under the "Creative Commons 00008 * License (Attribution-NonCommercial-ShareAlike 3.0)" 00009 * and is copyrighted by Gian Diego Tipaldi and Kai O. Arras 00010 * 00011 * Further information on this license can be found at: 00012 * http://creativecommons.org/licenses/by-nc-sa/3.0/ 00013 * 00014 * FLIRTLib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied 00016 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 * 00019 *****************************************************************/ 00020 00021 00022 00023 #ifndef SIMPLEMINMAXPEAKFINDER_H_ 00024 #define SIMPLEMINMAXPEAKFINDER_H_ 00025 00026 #include <utils/SimplePeakFinder.h> 00027 #include <vector> 00028 00037 class SimpleMinMaxPeakFinder: public SimplePeakFinder{ 00038 public: 00045 SimpleMinMaxPeakFinder(double minValue = 0.0, double minDifference = 0.0); 00046 00047 virtual bool isPeak(const std::vector<double>& signal, unsigned int index) const; 00048 }; 00049 00050 #endif