newwave is hosted by Hepforge, IPPP Durham

New Wave - Noise Elimination With Wavelets At Vast Energies  0.1.0
code/include/NewWave/FrequencyBand.hh
Go to the documentation of this file.
00001 #ifndef NEWWAVE_FREQUENCY_BAND_HH
00002 #define NEWWAVE_FREQUENCY_BAND_HH
00003 
00004 #include "NewWave/WaveletCoefficient.hh"
00005 #include "NewWave/FrequencyBand.fh"
00006 
00007 namespace NewWave {
00008   
00010 
00017   class FrequencyBand{
00018     
00019   public:
00020     
00021     FrequencyBand(int yLevel, int phiLevel);
00022     
00024 
00028     const WaveletCoefficients &coefficients()const;
00029     
00031 
00039     double rms()const;
00040     
00042 
00047     void addCoefficient(const WaveletCoefficient &coeff);
00048     
00050     int yLevel()const;
00051     
00053     int phiLevel()const;
00054     
00055   private:
00056 
00057     int _nCoeffs;
00058     int _yLevel;
00059     int _phiLevel;
00060     
00061     mutable double _rms;
00062     
00063     WaveletCoefficients _coefficients;
00064     
00065   };
00066   
00067 }
00068 
00069 #endif