auditory.sampled
Class FIRFilter

java.lang.Object
  extended by auditory.sampled.FIRFilter

public class FIRFilter
extends java.lang.Object

An encapsulation of a Finite Impulse Response (FIR) filter

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Constructor Summary
FIRFilter(double[] weights)
          Explicit Value Constructor
 
Method Summary
 int getLength()
          Get the number of weights (i.e., coefficients) in this FIR filter
 double getWeight(int index)
          Get a particular weight (i.e., coefficient)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIRFilter

public FIRFilter(double[] weights)
Explicit Value Constructor

Parameters:
weights - The weights to apply
Method Detail

getLength

public int getLength()
Get the number of weights (i.e., coefficients) in this FIR filter

Returns:
The number of weights

getWeight

public double getWeight(int index)
Get a particular weight (i.e., coefficient)

Parameters:
index - The index of the weight


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers