23#ifndef _PEAKFINDER_HPP_
24#define _PEAKFINDER_HPP_
29#include "boost/shared_ptr.hpp"
44 std::vector<size_t>& resultIndices)
const = 0;
64 double _zValueThreshold = 3,
65 bool _preprocessWithLogarithm =
true,
66 std::ostream* _log = 0)
67 : windowRadius(_windowRadius),
68 zValueThreshold(_zValueThreshold),
69 preprocessWithLogarithm(_preprocessWithLogarithm),
78 std::vector<size_t>& resultIndices)
const;
PeakFinder implementation based on signal-to-noise ratio.
boost::shared_ptr< NoiseCalculator > noiseCalculator_
PeakFinder_SNR(boost::shared_ptr< NoiseCalculator > noiseCalculator, const Config &config=Config())
virtual void findPeaks(const math::OrderedPairContainerRef &pairs, std::vector< size_t > &resultIndices) const
interface for finding peaks in an array of ordered pairs
virtual void findPeaks(const math::OrderedPairContainerRef &pairs, std::vector< size_t > &resultIndices) const =0
wrapper class for accessing contiguous data as a container of OrderedPairs; note that it does not own...
bool preprocessWithLogarithm
Config(size_t _windowRadius=2, double _zValueThreshold=3, bool _preprocessWithLogarithm=true, std::ostream *_log=0)