public class FilterParams
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Parameters for digital filter design - just the filter on it's own, not the complete set with data sources and everything eles.
Modifier and Type | Field and Description |
---|---|
double |
chebyGamma |
FilterBand |
filterBand |
int |
filterOrder |
FilterType |
filterType |
float |
highPassFreq |
java.io.File |
lastImportFile
Some extras for arbitrary filters.
|
float |
lowPassFreq |
double |
passBandRipple |
static int |
SCALE_LIN |
static int |
SCALE_LOG |
static long |
serialVersionUID |
double |
stopBandRipple |
Constructor and Description |
---|
FilterParams() |
Modifier and Type | Method and Description |
---|---|
void |
assign(FilterParams p) |
FilterParams |
clone() |
boolean |
equals(FilterParams p) |
boolean |
fillXMLParameters(org.w3c.dom.Document doc,
org.w3c.dom.Element paramsEl)
Fill in filter parameters attributes to XML element - for use in filters stand alone
and also in click detector, etc.
|
double[] |
getArbFreqs() |
double[] |
getArbFreqsReNiquist(double sampleRate) |
double[] |
getArbGainsdB() |
double[] |
getArbGainsFact() |
double |
getCenterFreq() |
java.lang.String |
sayBand() |
java.lang.String |
sayType() |
void |
setArbFilterShape(double[] f,
double[] gain) |
void |
setCentreFreq(double d) |
java.lang.String |
toString() |
public static final long serialVersionUID
public FilterType filterType
public FilterBand filterBand
public int filterOrder
public float lowPassFreq
public float highPassFreq
public double passBandRipple
public double stopBandRipple
public double chebyGamma
public java.io.File lastImportFile
public static final int SCALE_LOG
public static final int SCALE_LIN
public boolean equals(FilterParams p)
public void assign(FilterParams p)
public FilterParams clone()
clone
in class java.lang.Object
public java.lang.String sayType()
public java.lang.String sayBand()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean fillXMLParameters(org.w3c.dom.Document doc, org.w3c.dom.Element paramsEl)
doc
- XML documentparamsEl
- XML elementpublic double getCenterFreq()
public void setCentreFreq(double d)
public void setArbFilterShape(double[] f, double[] gain)
public double[] getArbFreqsReNiquist(double sampleRate)
sampleRate
- sample rate (NOT Niquist)public double[] getArbFreqs()
public double[] getArbGainsdB()
public double[] getArbGainsFact()