SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
PhaseLockComplex::ExpAvg Class Reference

Public Member Functions

 ExpAvg ()
 
void setAlpha (const float &alpha)
 
float feed (const float &x)
 

Private Attributes

float m_a0
 alpha More...
 
float m_a1
 1 - alpha More...
 
float m_y1
 

Detailed Description

Definition at line 59 of file phaselockcomplex.h.

Constructor & Destructor Documentation

◆ ExpAvg()

PhaseLockComplex::ExpAvg::ExpAvg ( )
inline

Definition at line 62 of file phaselockcomplex.h.

62  : m_a0(0.999), m_a1(0.001), m_y1(0.0f)
63  {}

Member Function Documentation

◆ feed()

float PhaseLockComplex::ExpAvg::feed ( const float &  x)
inline

Definition at line 69 of file phaselockcomplex.h.

Referenced by PhaseLockComplex::feed().

70  {
71  float y = m_a1*x + m_a0*m_y1;
72  m_y1 = y;
73  return y;
74  }
+ Here is the caller graph for this function:

◆ setAlpha()

void PhaseLockComplex::ExpAvg::setAlpha ( const float &  alpha)
inline

Definition at line 64 of file phaselockcomplex.h.

65  {
66  m_a0 = alpha;
67  m_a1 = 1.0 - alpha;
68  }

Member Data Documentation

◆ m_a0

float PhaseLockComplex::ExpAvg::m_a0
private

alpha

Definition at line 76 of file phaselockcomplex.h.

◆ m_a1

float PhaseLockComplex::ExpAvg::m_a1
private

1 - alpha

Definition at line 77 of file phaselockcomplex.h.

◆ m_y1

float PhaseLockComplex::ExpAvg::m_y1
private

Definition at line 78 of file phaselockcomplex.h.


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