gri_agc2_ff Class Reference
[Signal Level Control]

high performance Automatic Gain Control class with attack and decay rate

Power is approximated by absolute value More...

#include <gri_agc2_ff.h>

Inheritance diagram for gri_agc2_ff:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 gri_agc2_ff (float attack_rate=1e-1, float decay_rate=1e-2, float reference=1.0, float gain=1.0, float max_gain=0.0)
float attack_rate () const
float decay_rate () const
float reference () const
float gain () const
float max_gain () const
void set_attack_rate (float rate)
void set_decay_rate (float rate)
void set_reference (float reference)
void set_gain (float gain)
void set_max_gain (float max_gain)
float scale (float input)
void scaleN (float output[], const float input[], unsigned n)

Protected Attributes

float _attack_rate
float _decay_rate
float _reference
float _gain
float _max_gain


Detailed Description

high performance Automatic Gain Control class with attack and decay rate

Power is approximated by absolute value


Constructor & Destructor Documentation

gri_agc2_ff::gri_agc2_ff ( float  attack_rate = 1e-1,
float  decay_rate = 1e-2,
float  reference = 1.0,
float  gain = 1.0,
float  max_gain = 0.0 
) [inline]


Member Function Documentation

float gri_agc2_ff::attack_rate (  )  const [inline]

References _attack_rate.

float gri_agc2_ff::decay_rate (  )  const [inline]

References _decay_rate.

float gri_agc2_ff::gain (  )  const [inline]

References _gain.

float gri_agc2_ff::max_gain (  )  const [inline]

References _max_gain.

float gri_agc2_ff::reference (  )  const [inline]

References _reference.

float gri_agc2_ff::scale ( float  input  )  [inline]

void gri_agc2_ff::scaleN ( float  output[],
const float  input[],
unsigned  n 
) [inline]

References gen_whitener::i, and scale().

void gri_agc2_ff::set_attack_rate ( float  rate  )  [inline]

References _attack_rate.

void gri_agc2_ff::set_decay_rate ( float  rate  )  [inline]

References _decay_rate.

void gri_agc2_ff::set_gain ( float  gain  )  [inline]

References _gain.

void gri_agc2_ff::set_max_gain ( float  max_gain  )  [inline]

References _max_gain.

void gri_agc2_ff::set_reference ( float  reference  )  [inline]

References _reference.


Member Data Documentation

float gri_agc2_ff::_attack_rate [protected]

Referenced by attack_rate(), scale(), and set_attack_rate().

float gri_agc2_ff::_decay_rate [protected]

Referenced by decay_rate(), scale(), and set_decay_rate().

float gri_agc2_ff::_gain [protected]

Referenced by gain(), scale(), and set_gain().

float gri_agc2_ff::_max_gain [protected]

Referenced by max_gain(), scale(), and set_max_gain().

float gri_agc2_ff::_reference [protected]

Referenced by reference(), scale(), and set_reference().


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

Generated on Thu Mar 5 09:03:18 2009 for GNU Radio 3.1.3 by  doxygen 1.5.8