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

java.lang.Object
  extended by org.jscience.media.audio.dsp.filters.IIRFilterDesignBase
Direct Known Subclasses:
IIRBandpassFilterDesign, IIRHighpassFilterDesign, IIRLowpassFilterDesign

public abstract class IIRFilterDesignBase
extends java.lang.Object

DOCUMENT ME!


Field Summary
protected  double alpha
          DOCUMENT ME!
protected  double beta
          DOCUMENT ME!
protected  int frequency
          DOCUMENT ME!
protected  double gamma
          DOCUMENT ME!
protected  double parameter
          DOCUMENT ME!
protected  int sampleRate
          DOCUMENT ME!
 
Constructor Summary
IIRFilterDesignBase(int frequency, int sampleRate, double parameter)
          Creates a new IIRFilterDesignBase object.
 
Method Summary
protected  double calcRadiansPerSample(double freq)
          DOCUMENT ME!
abstract  void doFilterDesign()
          DOCUMENT ME!
 double getAlpha()
          DOCUMENT ME!
 double getBeta()
          DOCUMENT ME!
 double getGamma()
          DOCUMENT ME!
protected  double getThetaZero()
          DOCUMENT ME!
 void printCoefficients()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frequency

protected int frequency
DOCUMENT ME!


sampleRate

protected int sampleRate
DOCUMENT ME!


parameter

protected double parameter
DOCUMENT ME!


alpha

protected double alpha
DOCUMENT ME!


beta

protected double beta
DOCUMENT ME!


gamma

protected double gamma
DOCUMENT ME!

Constructor Detail

IIRFilterDesignBase

public IIRFilterDesignBase(int frequency,
                           int sampleRate,
                           double parameter)
Creates a new IIRFilterDesignBase object.

Parameters:
frequency - DOCUMENT ME!
sampleRate - DOCUMENT ME!
parameter - DOCUMENT ME!
Method Detail

calcRadiansPerSample

protected double calcRadiansPerSample(double freq)
DOCUMENT ME!

Parameters:
freq - DOCUMENT ME!
Returns:
DOCUMENT ME!

getThetaZero

protected double getThetaZero()
DOCUMENT ME!

Returns:
DOCUMENT ME!

doFilterDesign

public abstract void doFilterDesign()
DOCUMENT ME!


printCoefficients

public void printCoefficients()
DOCUMENT ME!


getAlpha

public double getAlpha()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getBeta

public double getBeta()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getGamma

public double getGamma()
DOCUMENT ME!

Returns:
DOCUMENT ME!