Rename SpecPowerMeter as SpecPowerCalculation
This commit is contained in:
parent
57ce726a25
commit
574a20f95f
|
@ -76,7 +76,7 @@ private:
|
|||
|
||||
FormatVectorT mClasses;
|
||||
MultiFormatReader mReader;
|
||||
SpecPowerMeter mMeter;
|
||||
SpecPowerCalculation mMeter;
|
||||
|
||||
#ifdef FORMATCLASSIFIER_SIGNAL_DEBUG
|
||||
std::unique_ptr<DebugWriter> mpWriter;
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
SpecPowerMeter.cpp
|
||||
SpecPowerCalculation.cpp
|
||||
|
||||
Philipp Sibler
|
||||
|
||||
******************************************************************//**
|
||||
|
||||
\class SpecPowerMeter
|
||||
\brief SpecPowerMeter is a simple spectral power level meter.
|
||||
\class SpecPowerCalculation
|
||||
\brief SpecPowerCalculation is a simple spectral power level meter.
|
||||
|
||||
SpecPowerMeter operates in the Fourier domain and allows power level
|
||||
SpecPowerCalculation operates in the Fourier domain and allows power level
|
||||
measurements in subbands or in the entire signal band.
|
||||
|
||||
*//*******************************************************************/
|
||||
|
@ -24,7 +24,7 @@ measurements in subbands or in the entire signal band.
|
|||
|
||||
#include "../FFT.h"
|
||||
|
||||
SpecPowerMeter::SpecPowerMeter(size_t sigLen)
|
||||
SpecPowerCalculation::SpecPowerCalculation(size_t sigLen)
|
||||
: mSigLen(sigLen)
|
||||
, mSigI{ sigLen, true }
|
||||
, mSigFR{ sigLen }
|
||||
|
@ -32,11 +32,11 @@ SpecPowerMeter::SpecPowerMeter(size_t sigLen)
|
|||
{
|
||||
}
|
||||
|
||||
SpecPowerMeter::~SpecPowerMeter()
|
||||
SpecPowerCalculation::~SpecPowerCalculation()
|
||||
{
|
||||
}
|
||||
|
||||
float SpecPowerMeter::CalcPower(float* sig, float fc, float bw)
|
||||
float SpecPowerCalculation::CalcPower(float* sig, float fc, float bw)
|
||||
{
|
||||
float pwr;
|
||||
int loBin, hiBin;
|
||||
|
@ -58,7 +58,7 @@ float SpecPowerMeter::CalcPower(float* sig, float fc, float bw)
|
|||
return pwr;
|
||||
}
|
||||
|
||||
float SpecPowerMeter::CalcBinPower(float* sig_f_r, float* sig_f_i, int loBin, int hiBin)
|
||||
float SpecPowerCalculation::CalcBinPower(float* sig_f_r, float* sig_f_i, int loBin, int hiBin)
|
||||
{
|
||||
float pwr = 0.0f;
|
||||
|
||||
|
@ -70,7 +70,7 @@ float SpecPowerMeter::CalcBinPower(float* sig_f_r, float* sig_f_i, int loBin, in
|
|||
return pwr;
|
||||
}
|
||||
|
||||
int SpecPowerMeter::Freq2Bin(float fc)
|
||||
int SpecPowerCalculation::Freq2Bin(float fc)
|
||||
{
|
||||
int bin;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <cstddef>
|
||||
#include "../SampleFormat.h"
|
||||
|
||||
class SpecPowerMeter
|
||||
class SpecPowerCalculation
|
||||
{
|
||||
const size_t mSigLen;
|
||||
|
||||
|
@ -25,8 +25,8 @@ class SpecPowerMeter
|
|||
float CalcBinPower(float* sig_f_r, float* sig_f_i, int loBin, int hiBin);
|
||||
int Freq2Bin(float fc);
|
||||
public:
|
||||
SpecPowerMeter(size_t sigLen);
|
||||
~SpecPowerMeter();
|
||||
SpecPowerCalculation(size_t sigLen);
|
||||
~SpecPowerCalculation();
|
||||
|
||||
float CalcPower(float* sig, float fc, float bw);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue