Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

UserAnalogFilter Class Reference

#include <useranalogfilter.h>

Inheritance diagram for UserAnalogFilter:

AnalogFilter FilterFunction Advancable List of all members.

Detailed Description

Implementation of an analog low-pass filter with a user-defined kernel (maximum length = 10).

Public Member Functions

Public Attributes

Private Attributes

Friends


Constructor & Destructor Documentation

UserAnalogFilter::UserAnalogFilter unsigned int    kernel_length = 10,
double *    weights = 0
 

Constructs a new user-defined analog filter.

Parameters:
kernel_length The length of the filter kernel.
weights An array of filter-weights. These weights are not normalized, so make sure that they sum up to 1, if you want to create a low-pass filter.

UserAnalogFilter::~UserAnalogFilter void   
 

Free the memory.


Member Function Documentation

void UserAnalogFilter::createKernel unsigned int    n [virtual]
 

Calculates a new kernel for the given number of data points. If n is not equal to the kernel-length, then the last n weights of the user-defined kernel are used. Their sum is normalized to the sum of the whole kernel.

Parameters:
n Number of data points to filter.

Implements AnalogFilter.

int UserAnalogFilter::updateInternal   [virtual]
 

Updates the internal state of the filter.

Reimplemented from AnalogFilter.


Member Data Documentation

double UserAnalogFilter::m_sum_kernel [private]
 

Sum of all kernel weights.