FFTBinPrediction.H
00001 #ifndef SEABEA_SONAR_FFTBINPREDICTION_H
00002 #define SEABEA_SONAR_FFTBINPREDICTION_H
00003
00004
00005
00006
00007
00008
00009
00010 class FFTBinAffinePrediction {
00011 public:
00012 FFTBinAffinePrediction(int cheetah_bitrate, int fft_length,
00013 double target_frequency, double slope,
00014 double offset, int halfwidth);
00015 ~FFTBinAffinePrediction();
00016
00017
00018 int getBitrate();
00019 int getFFTLength();
00020 double getTargetFrequency();
00021 double getSlope();
00022 double getOffset();
00023 int getHalfwidth();
00024 int getTargetBin();
00025 double getSamplingFrequency();
00026
00027
00028 void setBitrate(int bitrate);
00029 void setFFTLength(int fft_length);
00030 void setTargetFrequency(double frequency);
00031 void setSlope(double slope);
00032 void setOffset(double offset);
00033 void setHalfwidth(int halfwidth);
00034 void updateTargetBin();
00035
00036 private:
00037 int m_bitrate;
00038 int m_fft_length;
00039 double m_target_frequency;
00040 double m_slope;
00041 double m_offset;
00042 int m_halfwidth;
00043 double m_sampling_frequency;
00044 int m_target_bin;
00045 };
00046
00047 #endif // SEABEA_SONAR_FFTBINPREDICTION_H Defined