Applies an existing spectral envelope to incoming spectral peaks or spectrum. More...
#include <SpectralEnvelopeApply.hxx>
Public Member Functions | |
| SpectralEnvelopeApply () | |
| Base constructor of class. | |
| SpectralEnvelopeApply (const SpectralEnvelopeApplyConfig &c) | |
| Constructor with an object of SpectralEnvelopeApplyConfig class by parameter. | |
| ~SpectralEnvelopeApply () | |
| Destructor of the class. | |
| const ProcessingConfig & | GetConfig () const |
| This method allows to obtain the SpectralEnvelopeApplyConfig object of the class. | |
| bool | Do (void) |
| Supervised Do() function, not implemented yet. | |
| bool | Do (const SpectralPeakArray &input, const Spectrum &spectralEnvelope, SpectralPeakArray &output) |
| Unsupervised Do function, applies an spectral envelope to incoming Spectral Peaks. | |
| bool | Do (const Spectrum &input, const Spectrum &spectralEnvelope, Spectrum &output) |
| Unsupervised Do function, applies an spectral envelope to incoming spectrum. | |
| bool | SetPrototypes (const SpectralPeakArray &input, Spectrum &output) |
| Change the internal type state. | |
| bool | SetPrototypes () |
| bool | UnsetPrototypes () |
| bool | MayDisableExecution () const |
Applies an existing spectral envelope to incoming spectral peaks or spectrum.
Definition at line 48 of file SpectralEnvelopeApply.hxx.
| CLAM::SpectralEnvelopeApply::SpectralEnvelopeApply | ( | ) |
Base constructor of class.
Calls Configure method with a SpectralEnvelopeApplyConfig initialised by default
Definition at line 31 of file SpectralEnvelopeApply.cxx.
References CLAM::Processing::Configure().
| CLAM::SpectralEnvelopeApply::SpectralEnvelopeApply | ( | const SpectralEnvelopeApplyConfig & | c = SpectralEnvelopeApplyConfig() |
) |
Constructor with an object of SpectralEnvelopeApplyConfig class by parameter.
| c | SpectralEnvelopeApplyConfig object created by the user |
Definition at line 36 of file SpectralEnvelopeApply.cxx.
References CLAM::Processing::Configure().
| CLAM::SpectralEnvelopeApply::~SpectralEnvelopeApply | ( | ) |
Destructor of the class.
Definition at line 41 of file SpectralEnvelopeApply.cxx.
| bool CLAM::SpectralEnvelopeApply::Do | ( | const Spectrum & | input, | |
| const Spectrum & | spectralEnvelope, | |||
| Spectrum & | output | |||
| ) |
Unsupervised Do function, applies an spectral envelope to incoming spectrum.
| input | The Spectrum we want to apply the spectral Envelope to | |
| spectralEnvelope | The Spectrum that holds the spectral Envelope | |
| out | An Spectrum object with the new SpectralEnvelope applied |
Definition at line 113 of file SpectralEnvelopeApply.cxx.
References CLAM_ASSERT, CLAM::Spectrum::GetSize(), and CLAM::BPFTmpl< TX, TY >::GetValue().
| bool CLAM::SpectralEnvelopeApply::Do | ( | const SpectralPeakArray & | input, | |
| const Spectrum & | spectralEnvelope, | |||
| SpectralPeakArray & | output | |||
| ) |
Unsupervised Do function, applies an spectral envelope to incoming Spectral Peaks.
| input | The SpectralPeaks we want to apply the spectral Envelope to | |
| spectralEnvelope | The Spectrum that holds the spectral Envelope | |
| out | An SpectralPeakArray object with the new SpectralEnvelope applied |
Definition at line 80 of file SpectralEnvelopeApply.cxx.
References CLAM_ASSERT, CLAM::SpectralPeakArray::GetnMaxPeaks(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::BPFTmpl< TX, TY >::GetValue(), CLAM::SpectralPeakArray::SetnMaxPeaks(), and CLAM::SpectralPeakArray::SetnPeaks().
| bool CLAM::SpectralEnvelopeApply::Do | ( | void | ) | [virtual] |
Supervised Do() function, not implemented yet.
Implements CLAM::Processing.
Definition at line 73 of file SpectralEnvelopeApply.cxx.
References CLAM_ASSERT, and CLASS.
Referenced by CLAM::SMSSpectralShapeShift::Do(), and CLAM::SMSPitchShift::Do().
| const ProcessingConfig& CLAM::SpectralEnvelopeApply::GetConfig | ( | ) | const [inline, virtual] |
This method allows to obtain the SpectralEnvelopeApplyConfig object of the class.
Reimplemented from CLAM::Processing.
Definition at line 77 of file SpectralEnvelopeApply.hxx.
| bool CLAM::SpectralEnvelopeApply::MayDisableExecution | ( | ) | const [inline] |
Definition at line 108 of file SpectralEnvelopeApply.hxx.
| bool CLAM::SpectralEnvelopeApply::SetPrototypes | ( | ) |
Definition at line 61 of file SpectralEnvelopeApply.cxx.
| bool CLAM::SpectralEnvelopeApply::SetPrototypes | ( | const SpectralPeakArray & | input, | |
| Spectrum & | output | |||
| ) |
Change the internal type state.
Definition at line 56 of file SpectralEnvelopeApply.cxx.
| bool CLAM::SpectralEnvelopeApply::UnsetPrototypes | ( | ) |
Definition at line 66 of file SpectralEnvelopeApply.cxx.
1.6.3