ProteoWizard
Public Member Functions | Static Public Member Functions
pwiz::frequency::PeakDetectorNaive Class Reference

Naive implementation of the PeakDetector interface. More...

#include <PeakDetectorNaive.hpp>

Inheritance diagram for pwiz::frequency::PeakDetectorNaive:
pwiz::frequency::PeakDetector

List of all members.

Public Member Functions

virtual double noiseFactor () const =0
virtual unsigned int detectionRadius () const =0
PeakDetector interface
virtual void findPeaks (const pwiz::data::FrequencyData &fd, pwiz::data::peakdata::Scan &result) const =0
 Find the peaks in the frequency data, filling in Scan structure.
virtual ~PeakDetectorNaive ()
- Public Member Functions inherited from pwiz::frequency::PeakDetector
virtual ~PeakDetector ()

Static Public Member Functions

static std::auto_ptr
< PeakDetectorNaive
create (double noiseFactor=5, unsigned int detectionRadius=2)
 create an instance.

Detailed Description

Naive implementation of the PeakDetector interface.

Reports peaks where:

  1. magnitude > noise*noiseFactor
  2. magnitude is increasing on [center-detectionRadius, center]
  3. magnitude is decreasing on [center, center+detectionRadius]

All peaks are reported as charge==1

Definition at line 46 of file PeakDetectorNaive.hpp.


Constructor & Destructor Documentation

virtual pwiz::frequency::PeakDetectorNaive::~PeakDetectorNaive ( )
inlinevirtual

Definition at line 60 of file PeakDetectorNaive.hpp.

{}

Member Function Documentation

static std::auto_ptr<PeakDetectorNaive> pwiz::frequency::PeakDetectorNaive::create ( double  noiseFactor = 5,
unsigned int  detectionRadius = 2 
)
static

create an instance.

virtual double pwiz::frequency::PeakDetectorNaive::noiseFactor ( ) const
pure virtual

Referenced by testCreation().

virtual unsigned int pwiz::frequency::PeakDetectorNaive::detectionRadius ( ) const
pure virtual

Referenced by testCreation().

virtual void pwiz::frequency::PeakDetectorNaive::findPeaks ( const pwiz::data::FrequencyData fd,
pwiz::data::peakdata::Scan result 
) const
pure virtual

Find the peaks in the frequency data, filling in Scan structure.

Implements pwiz::frequency::PeakDetector.

Referenced by testFind().


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