jass.generators
Class BiQuadFilterBase

java.lang.Object
  extended by jass.generators.BiQuadFilterBase
All Implemented Interfaces:
Filter
Direct Known Subclasses:
BiQuad

public abstract class BiQuadFilterBase
extends java.lang.Object
implements Filter

Biquad Filter, low level implementation without calculating coefficients See bottom for details. This implementation has normalized a0=1

Author:
Kees van den Doel (kvdoel@cs.ubc.ca)

Field Summary
protected  float a1
          Defining coefficients, will be set in superclasses
protected  float a2
          Defining coefficients, will be set in superclasses
protected  float b0
          Defining coefficients, will be set in superclasses
protected  float b1
          Defining coefficients, will be set in superclasses
protected  float b2
          Defining coefficients, will be set in superclasses
protected  float xt_1
          State of filter.
protected  float xt_2
          State of filter.
protected  float yt_1
          State of filter.
protected  float yt_2
          State of filter.
 
Constructor Summary
BiQuadFilterBase()
           
 
Method Summary
 void filter(float[] output, float[] input, int nsamples, int inputOffset)
          Proces input (may be same as output).
 void reset()
          Reset state.
 void setComplement(boolean complement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

yt_1

protected float yt_1
State of filter.


yt_2

protected float yt_2
State of filter.


xt_1

protected float xt_1
State of filter.


xt_2

protected float xt_2
State of filter.


a1

protected float a1
Defining coefficients, will be set in superclasses


a2

protected float a2
Defining coefficients, will be set in superclasses


b0

protected float b0
Defining coefficients, will be set in superclasses


b1

protected float b1
Defining coefficients, will be set in superclasses


b2

protected float b2
Defining coefficients, will be set in superclasses

Constructor Detail

BiQuadFilterBase

public BiQuadFilterBase()
Method Detail

setComplement

public void setComplement(boolean complement)

reset

public void reset()
Reset state.


filter

public void filter(float[] output,
                   float[] input,
                   int nsamples,
                   int inputOffset)
Proces input (may be same as output).

Specified by:
filter in interface Filter
Parameters:
output - user provided buffer for returned result.
input - user provided input buffer.
nsamples - number of samples written to output buffer.
inputOffset - where to start in circular buffer input.