Diana Software
QNoisePowerSpectrumEstimator.hh
Go to the documentation of this file.
1 #ifndef _Q_NOISE_POWER_SPECTRUM_ESTIMATOR_HH_
2 #define _Q_NOISE_POWER_SPECTRUM_ESTIMATOR_HH_
3 
4 #include "QRealComplexFFT.hh"
5 
7 {
8  public:
9  QNoisePowerSpectrumEstimator(const int size, Diana::QFFT::WindowType w, int coherentGain = 2);
10  void Clear();
11  QError Add(const Diana::QVector& pulse);
12  Diana::QVector GetNoisePowerSpectrum() const;
13  int GetNumberOfPulses() const { return fNumberOfPulses; }
14  private:
15 
16  Diana::QVector fNoisePowerSpectrum;
18  Diana::QRealComplexFFT fTransformer;
19 };
20 
21 #endif
error class with error type and description
Definition: QError.hh:115
QNoisePowerSpectrumEstimator(const int size, Diana::QFFT::WindowType w, int coherentGain=2)
QError Add(const Diana::QVector &pulse)