org.jscience.media.audio.dsp.filters
Class IIRFilterBase

java.lang.Object
  extended by org.jscience.media.audio.dsp.filters.IIRFilterBase
Direct Known Subclasses:
IIRBandpassFilter, IIRHighpassFilter, IIRLowpassFilter

public abstract class IIRFilterBase
extends java.lang.Object

DOCUMENT ME!


Field Summary
protected  double alpha
          DOCUMENT ME!
protected  double amplitudeAdj
          DOCUMENT ME!
protected  double beta
          DOCUMENT ME!
protected  double gamma
          DOCUMENT ME!
protected static int HISTORYSIZE
          DOCUMENT ME!
protected  int iIndex
          DOCUMENT ME!
protected  double[] inArray
          DOCUMENT ME!
protected  int jIndex
          DOCUMENT ME!
protected  int kIndex
          DOCUMENT ME!
protected  double[] outArray
          DOCUMENT ME!
 
Constructor Summary
IIRFilterBase(double alpha, double beta, double gamma)
          Creates a new IIRFilterBase object.
IIRFilterBase(IIRFilterDesignBase fdb)
          Creates a new IIRFilterBase object.
 
Method Summary
abstract  void doFilter(short[] inBuffer, double[] outBuffer, int length)
          DOCUMENT ME!
 void setAlpha(double alpha)
          DOCUMENT ME!
 void setAmplitudeAdj(double amplitudeAdj)
          DOCUMENT ME!
 void setBeta(double beta)
          DOCUMENT ME!
 void setGamma(double gamma)
          DOCUMENT ME!
 void updateFilterCoefficients(IIRFilterDesignBase fdb)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HISTORYSIZE

protected static final int HISTORYSIZE
DOCUMENT ME!

See Also:
Constant Field Values

alpha

protected double alpha
DOCUMENT ME!


beta

protected double beta
DOCUMENT ME!


gamma

protected double gamma
DOCUMENT ME!


amplitudeAdj

protected double amplitudeAdj
DOCUMENT ME!


inArray

protected double[] inArray
DOCUMENT ME!


outArray

protected double[] outArray
DOCUMENT ME!


iIndex

protected int iIndex
DOCUMENT ME!


jIndex

protected int jIndex
DOCUMENT ME!


kIndex

protected int kIndex
DOCUMENT ME!

Constructor Detail

IIRFilterBase

public IIRFilterBase(double alpha,
                     double beta,
                     double gamma)
Creates a new IIRFilterBase object.

Parameters:
alpha - DOCUMENT ME!
beta - DOCUMENT ME!
gamma - DOCUMENT ME!

IIRFilterBase

public IIRFilterBase(IIRFilterDesignBase fdb)
Creates a new IIRFilterBase object.

Parameters:
fdb - DOCUMENT ME!
Method Detail

updateFilterCoefficients

public void updateFilterCoefficients(IIRFilterDesignBase fdb)
DOCUMENT ME!

Parameters:
fdb - DOCUMENT ME!

setAlpha

public void setAlpha(double alpha)
DOCUMENT ME!

Parameters:
alpha - DOCUMENT ME!

setBeta

public void setBeta(double beta)
DOCUMENT ME!

Parameters:
beta - DOCUMENT ME!

setGamma

public void setGamma(double gamma)
DOCUMENT ME!

Parameters:
gamma - DOCUMENT ME!

doFilter

public abstract void doFilter(short[] inBuffer,
                              double[] outBuffer,
                              int length)
DOCUMENT ME!

Parameters:
inBuffer - DOCUMENT ME!
outBuffer - DOCUMENT ME!
length - DOCUMENT ME!

setAmplitudeAdj

public void setAmplitudeAdj(double amplitudeAdj)
DOCUMENT ME!

Parameters:
amplitudeAdj - DOCUMENT ME!