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

AnalogFilter Class Reference

#include <analogfilter.h>

Inheritance diagram for AnalogFilter:

FilterFunction Advancable GaussianAnalogFilter TriangularAnalogFilter UserAnalogFilter List of all members.

Detailed Description

Base class of all analog filters.

Public Member Functions

Public Attributes

Protected Attributes


Constructor & Destructor Documentation

AnalogFilter::AnalogFilter unsigned int    kernel_length = 1
 

Constructs a new analog filter.

Parameters:
kernel_length The length of the filter kernel.

AnalogFilter::~AnalogFilter void    [virtual]
 

Frees the memory.


Member Function Documentation

void AnalogFilter::addChannel   [virtual]
 

Adds one input channel.

virtual void AnalogFilter::createKernel unsigned int    n [pure virtual]
 

Calculates a new filter kernel for the given number of data points.

Parameters:
n Number of data points to filter.

Implemented in GaussianAnalogFilter, TriangularAnalogFilter, and UserAnalogFilter.

int AnalogFilter::filter const double *    r,
double *    x,
int *    indices = 0
[virtual]
 

Filter a response signal of the neural microcircuit.

Parameters:
R Response of the neural microcircuit.
X Target vector where to save the results.
indices Indices where to store the results in X.
Returns:
-1 if an error occured, 1 for success.

Implements FilterFunction.

void AnalogFilter::reset   [virtual]
 

Resets the information stored within the filter.

Implements FilterFunction.

int AnalogFilter::setNumInputs unsigned int    nInputs [virtual]
 

Sets the number of input channels.

Parameters:
nInputs The number of inputs.
Returns:
-1 if an error occured, 1 for success.

int AnalogFilter::updateInternal   [virtual]
 

This function is called after parameters are updated.

Reimplemented from FilterFunction.

Reimplemented in UserAnalogFilter.