ProteoWizard
Public Member Functions | Static Public Member Functions | List of all members
pwiz::frequency::PeakDetectorNaive Class Referenceabstract

Naive implementation of the PeakDetector interface. More...

#include <PeakDetectorNaive.hpp>

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

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. More...
 
virtual ~PeakDetectorNaive ()
 
- Public Member Functions inherited from pwiz::frequency::PeakDetector
virtual ~PeakDetector ()
 

Static Public Member Functions

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

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

§ ~PeakDetectorNaive()

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

Definition at line 60 of file PeakDetectorNaive.hpp.

60 {}

Member Function Documentation

§ create()

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

create an instance.

§ noiseFactor()

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

Referenced by testCreation().

§ detectionRadius()

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

Referenced by testCreation().

§ findPeaks()

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: