Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
FrequencyFilter Class Reference
Inheritance diagram for FrequencyFilter:
Collaboration diagram for FrequencyFilter:

Public Member Functions

 FrequencyFilter (double resolution, double expectedFrequency)
 
virtual void Update (double time)
 
virtual double SmoothedFrequency () const
 
virtual int StableFrequency () const
 
- Public Member Functions inherited from IFrequencyFilter
virtual ~IFrequencyFilter ()
 
virtual void Update (double value)=0
 
virtual double SmoothedFrequency () const =0
 
virtual int StableFrequency () const =0
 

Private Member Functions

 NONCOPYABLE (FrequencyFilter)
 

Private Attributes

FrequencyEstimator m_frequencyEstimator
 
Controller m_controller
 
IirFilter m_iirFilter
 
int m_stableFrequency
 
double m_smoothedFrequency
 
double m_averagedFrequency
 
int m_numberOfSamples
 

Constructor & Destructor Documentation

◆ FrequencyFilter()

FrequencyFilter::FrequencyFilter ( double  resolution,
double  expectedFrequency 
)
inline

Member Function Documentation

◆ NONCOPYABLE()

FrequencyFilter::NONCOPYABLE ( FrequencyFilter  )
private

◆ SmoothedFrequency()

virtual double FrequencyFilter::SmoothedFrequency ( ) const
inlinevirtual

Implements IFrequencyFilter.

◆ StableFrequency()

virtual int FrequencyFilter::StableFrequency ( ) const
inlinevirtual

Implements IFrequencyFilter.

◆ Update()

virtual void FrequencyFilter::Update ( double  time)
inlinevirtual

Implements IFrequencyFilter.

Member Data Documentation

◆ m_averagedFrequency

double FrequencyFilter::m_averagedFrequency
private

◆ m_controller

Controller FrequencyFilter::m_controller
private

◆ m_frequencyEstimator

FrequencyEstimator FrequencyFilter::m_frequencyEstimator
private

◆ m_iirFilter

IirFilter FrequencyFilter::m_iirFilter
private

◆ m_numberOfSamples

int FrequencyFilter::m_numberOfSamples
private

◆ m_smoothedFrequency

double FrequencyFilter::m_smoothedFrequency
private

◆ m_stableFrequency

int FrequencyFilter::m_stableFrequency
private

The documentation for this class was generated from the following file: