edu.sc.seis.fissuresUtil.freq
Class ButterworthFilter

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.freq.ButterworthFilter
All Implemented Interfaces:
FrequencyDomainProcess
Direct Known Subclasses:
ButterworthFilter, NamedFilter

public class ButterworthFilter
extends java.lang.Object
implements FrequencyDomainProcess


Field Summary
static int CAUSAL
           
 java.lang.String errorMessage
           
 int filterType
           
 double highFreqCorner
           
 double lowFreqCorner
           
static int NONCAUSAL
           
 int numPoles
           
static int TWOPASS
           
 
Constructor Summary
ButterworthFilter(double lowFreqCorner, double highFreqCorner, int numPoles)
          constructor
ButterworthFilter(double lowFreqCorner, double highFreqCorner, int numPoles, int filterType)
           
 
Method Summary
 Cmplx[] apply(double dt, Cmplx[] cx)
          method to do Butterworth band-pass filter in freq domain
 void setHighFreqCorner(double freqValue)
          Method to set high frequency corner
 void setHighFreqCorner(java.lang.String str)
          Method to set high frequency corner
 void setLowFreqCorner(double freqValue)
          Method to set low frequency corner
 void setLowFreqCorner(java.lang.String str)
          Method to set low frequency corner
 void setNumPoles(int nPoles)
          Method to set number of poles
 void setNumPoles(java.lang.String str)
          Method to set number of poles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

highFreqCorner

public double highFreqCorner

lowFreqCorner

public double lowFreqCorner

numPoles

public int numPoles

filterType

public int filterType

errorMessage

public java.lang.String errorMessage

CAUSAL

public static final int CAUSAL
See Also:
Constant Field Values

NONCAUSAL

public static final int NONCAUSAL
See Also:
Constant Field Values

TWOPASS

public static final int TWOPASS
See Also:
Constant Field Values
Constructor Detail

ButterworthFilter

public ButterworthFilter(double lowFreqCorner,
                         double highFreqCorner,
                         int numPoles)
constructor


ButterworthFilter

public ButterworthFilter(double lowFreqCorner,
                         double highFreqCorner,
                         int numPoles,
                         int filterType)
Method Detail

setHighFreqCorner

public void setHighFreqCorner(double freqValue)
                       throws edu.sc.seis.fissuresUtil.freq.FilterException
Method to set high frequency corner

Throws:
edu.sc.seis.fissuresUtil.freq.FilterException

setHighFreqCorner

public void setHighFreqCorner(java.lang.String str)
                       throws edu.sc.seis.fissuresUtil.freq.FilterException
Method to set high frequency corner

Throws:
edu.sc.seis.fissuresUtil.freq.FilterException

setLowFreqCorner

public void setLowFreqCorner(double freqValue)
                      throws edu.sc.seis.fissuresUtil.freq.FilterException
Method to set low frequency corner

Throws:
edu.sc.seis.fissuresUtil.freq.FilterException

setLowFreqCorner

public void setLowFreqCorner(java.lang.String str)
                      throws edu.sc.seis.fissuresUtil.freq.FilterException
Method to set low frequency corner

Throws:
edu.sc.seis.fissuresUtil.freq.FilterException

setNumPoles

public void setNumPoles(int nPoles)
                 throws edu.sc.seis.fissuresUtil.freq.FilterException
Method to set number of poles

Throws:
edu.sc.seis.fissuresUtil.freq.FilterException

setNumPoles

public void setNumPoles(java.lang.String str)
                 throws edu.sc.seis.fissuresUtil.freq.FilterException
Method to set number of poles

Throws:
edu.sc.seis.fissuresUtil.freq.FilterException

apply

public Cmplx[] apply(double dt,
                     Cmplx[] cx)
method to do Butterworth band-pass filter in freq domain

Specified by:
apply in interface FrequencyDomainProcess