OnePoleVector3 Class Reference

One-pole vector3 filter. More...

#include <math/gzmath.hh>

Inherits OnePole< math::Vector3 >.

Public Member Functions

 OnePoleVector3 ()
 Constructor. More...
 
 OnePoleVector3 (double _fc, double _fs)
 Constructor. More...
 
virtual const math::Vector3GetValue ()
 Get the output of the filter. More...
 
const math::Vector3Process (const math::Vector3 &_x)
 Update the filter's output. More...
 
virtual void SetFc (double _fc, double _fs)
 Set the cutoff frequency and sample rate. More...
 
virtual void SetValue (const math::Vector3 &_val)
 Set the output of the filter. More...
 

Protected Attributes

double a0
 Input gain control. More...
 
double b1
 Gain of the feedback. More...
 
math::Vector3 y0
 Output. More...
 

Detailed Description

One-pole vector3 filter.

Constructor & Destructor Documentation

§ OnePoleVector3() [1/2]

OnePoleVector3 ( )
inline

Constructor.

References Filter< T >::SetValue().

§ OnePoleVector3() [2/2]

OnePoleVector3 ( double  _fc,
double  _fs 
)
inline

Constructor.

Parameters
[in]_fcCutoff frequency.
[in]_fsSample rate.

References Filter< T >::SetValue().

Member Function Documentation

§ GetValue()

virtual const math::Vector3 & GetValue ( )
inlinevirtualinherited

Get the output of the filter.

Returns
Filter's output.

References Filter< T >::y0.

§ Process()

const math::Vector3 & Process ( const math::Vector3 _x)
inlineinherited

Update the filter's output.

[in] _x Input value.

Returns
The filter's current output.

References Filter< T >::y0.

§ SetFc()

virtual void SetFc ( double  _fc,
double  _fs 
)
inlinevirtualinherited

Set the cutoff frequency and sample rate.

Parameters
[in]_fcCutoff frequency.
[in]_fsSample rate.

Implements Filter< math::Vector3 >.

§ SetValue()

virtual void SetValue ( const math::Vector3 _val)
inlinevirtualinherited

Set the output of the filter.

Parameters
[in]_valNew value.

Reimplemented in BiQuad< math::Vector3 >.

References Filter< T >::SetFc(), and Filter< T >::y0.

Member Data Documentation

§ a0

double a0
protectedinherited

Input gain control.

§ b1

double b1
protectedinherited

Gain of the feedback.

§ y0

math::Vector3 y0
protectedinherited

Output.


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