Public Member Functions | Private Attributes
pwiz::analysis::LocalMaximumPeakDetector Struct Reference

#include <LocalMaximumPeakDetector.hpp>

Inheritance diagram for pwiz::analysis::LocalMaximumPeakDetector:

List of all members.

Public Member Functions

 LocalMaximumPeakDetector (size_t windowSize)
virtual void detect (const std::vector< double > &x, const std::vector< double > &y, std::vector< double > &xPeakValues, std::vector< double > &yPeakValues, std::vector< Peak > *peaks=NULL)
 finds all local maxima, i.e.
- Public Member Functions inherited from pwiz::analysis::PeakDetector
virtual ~PeakDetector ()

Private Attributes

size_t window_

Detailed Description

Definition at line 32 of file LocalMaximumPeakDetector.hpp.

Constructor & Destructor Documentation

pwiz::analysis::LocalMaximumPeakDetector::LocalMaximumPeakDetector ( size_t  windowSize)

Member Function Documentation

virtual void pwiz::analysis::LocalMaximumPeakDetector::detect ( const std::vector< double > &  x,
const std::vector< double > &  y,
std::vector< double > &  xPeakValues,
std::vector< double > &  yPeakValues,
std::vector< Peak > *  peaks = NULL 

finds all local maxima, i.e.

any point that has a greater y value than both of its neighboring points; note: the peaks array, if non-NULL, only provides x and y values

Implements pwiz::analysis::PeakDetector.

Member Data Documentation

size_t pwiz::analysis::LocalMaximumPeakDetector::window_

Definition at line 44 of file LocalMaximumPeakDetector.hpp.

The documentation for this struct was generated from the following file: