CLAM::SpectralPeakArrayAdder Class Reference

This class performs the interpolation of two SpectralPeakArray processing data objects. More...

#include <SpectralPeakArrayAdder.hxx>

List of all members.

Public Member Functions

 SpectralPeakArrayAdder (const Config &c=Config())
 ~SpectralPeakArrayAdder ()
bool Do ()
 Supervised mode execution method (using ports).
bool Do (const SpectralPeakArray &in1, const SpectralPeakArray &in2, SpectralPeakArray &out)

Public Attributes

InPort< SpectralPeakArraymIn1
 Ports.
InPort< SpectralPeakArraymIn2
OutPort< SpectralPeakArraymOut

Detailed Description

This class performs the interpolation of two SpectralPeakArray processing data objects.

Definition at line 48 of file SpectralPeakArrayAdder.hxx.


Constructor & Destructor Documentation

CLAM::SpectralPeakArrayAdder::SpectralPeakArrayAdder ( const Config c = Config()  ) 

Definition at line 31 of file SpectralPeakArrayAdder.cxx.

References CLAM::Processing::Configure().

CLAM::SpectralPeakArrayAdder::~SpectralPeakArrayAdder (  )  [inline]

Definition at line 54 of file SpectralPeakArrayAdder.hxx.


Member Function Documentation

bool CLAM::SpectralPeakArrayAdder::Do ( const SpectralPeakArray in1,
const SpectralPeakArray in2,
SpectralPeakArray out 
)

This loop may be a little more efficient by ussing the buffers directly. But it would surely become muc less readable and much longer. TODO?

Definition at line 41 of file SpectralPeakArrayAdder.cxx.

References CLAM::SpectralPeakArray::AddSpectralPeak(), CLAM_ASSERT, CLAM_DEBUG_ASSERT, CLAM::SpectralPeakArray::GetFreq(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::SpectralPeakArray::GetSpectralPeak(), CLAM::Processing::IsRunning(), CLAM::SpectralPeakArray::SetnPeaks(), and CLAM::DynamicType::UpdateData().

bool CLAM::SpectralPeakArrayAdder::Do (  )  [inline, virtual]

Supervised mode execution method (using ports).

Returns:
A boolean telling whether it has been output

Implements CLAM::Processing.

Definition at line 56 of file SpectralPeakArrayAdder.hxx.

Referenced by CLAM::FrameAdder::Do().


Member Data Documentation

Ports.

Definition at line 61 of file SpectralPeakArrayAdder.hxx.

Definition at line 62 of file SpectralPeakArrayAdder.hxx.

Definition at line 63 of file SpectralPeakArrayAdder.hxx.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3