|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.StorageManager marf.Preprocessing.Preprocessing marf.Preprocessing.Filter marf.Preprocessing.CFEFilters.CFEFilter
public abstract class CFEFilter
General Continuous-Fraction Expansion (CFE) filter types. Based on the Masters Thesis work of Shivani Bhat in research of the 2D digital CFE filters.
This implementation in MARF is used for 2D version in
the TestFilters
application and the 1D version
in SpeakerIdentApp
. Look at the apps for the
example usage. The exact meaning of the filter parameters is
defined in Shivani's thesis.
Field Summary | |
---|---|
protected double |
a00
|
protected double |
a01
|
protected double |
a1
|
protected double |
a10
|
protected double |
a11
|
protected double |
a2
|
protected double |
b00
|
protected double |
b01
|
protected double |
b1
|
protected double |
b10
|
protected double |
b11
|
protected double |
b2
|
static int |
DEFAULT_CHUNK_SIZE
|
static int |
DEFAULT_STEP_SIZE
|
protected ComplexMatrix |
H
|
protected int |
iChunkSize
|
protected double |
k1
|
protected double |
k2
|
protected ComplexMatrix |
oZ1
|
protected ComplexMatrix |
oZ2
|
protected java.lang.String |
strConfig
|
Fields inherited from class marf.Preprocessing.Preprocessing |
---|
bRemoveNoise, bRemoveSilence, DEFAULT_SILENCE_THRESHOLD, dSilenceThreshold, oSample |
Fields inherited from class marf.Storage.StorageManager |
---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.Preprocessing.IFilter |
---|
FILTER_DIMENSIONALITY_1D, FILTER_DIMENSIONALITY_2D, FILTER_DIMENSIONALITY_3D, MARF_INTERFACE_CODE_REVISION |
Fields inherited from interface marf.Preprocessing.IPreprocessing |
---|
MARF_INTERFACE_CODE_REVISION |
Fields inherited from interface marf.Storage.IStorageManager |
---|
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS |
Constructor Summary | |
---|---|
CFEFilter(Sample poSample)
LowPassFilter Constructor. |
Method Summary | |
---|---|
void |
backSynchronizeObject()
Implementation of back-synchronization of Sample loaded object. |
boolean |
filter(double[][][] padSample,
double[][][] padFiltered)
Applies 3D filtering to the sample array and buffers the filtered data. |
boolean |
filter(double[][] padSample,
double[][] padFiltered)
Applies 2D filtering to the sample array and buffers the filtered data. |
boolean |
filter(double[] padSample,
double[] padFiltered)
Applies filtering to the sample array and buffers the filtered data. |
abstract ComplexMatrix |
h()
Transfer function; must be implemented by concrete filters. |
boolean |
removeNoise()
Overrides that of Preprocessing to invoke the CFE low-pass filter instead of the FFT one. |
Methods inherited from class marf.Preprocessing.Filter |
---|
getMARFSourceCodeRevision, preprocess |
Methods inherited from class marf.Preprocessing.Preprocessing |
---|
clone, compress, compress, cropAudio, extractParameters, getSample, normalize, normalize, normalize, removeSilence, removeSilence, setSample |
Methods inherited from class marf.Storage.StorageManager |
---|
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, equals, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, getObjectToSerialize, hashCode, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double a00
protected double a01
protected double a10
protected double a11
protected double b00
protected double b01
protected double b10
protected double b11
protected double a1
protected double a2
protected double b1
protected double b2
protected double k1
protected double k2
protected java.lang.String strConfig
protected ComplexMatrix oZ1
protected ComplexMatrix oZ2
public static final int DEFAULT_STEP_SIZE
public static final int DEFAULT_CHUNK_SIZE
protected int iChunkSize
protected ComplexMatrix H
Constructor Detail |
---|
public CFEFilter(Sample poSample) throws PreprocessingException
poSample
- incoming sample
PreprocessingException
Method Detail |
---|
public boolean filter(double[] padSample, double[] padFiltered) throws PreprocessingException
IFilter
padSample
- original sample to apply filtering to; should not be alteredpadFiltered
- buffer for filtered data
true if filtering was successful and/or there were any changes
- Throws:
PreprocessingException
- if any error happened during filtering- See Also:
IFilter.filter(double[], double[])
public boolean filter(double[][] padSample, double[][] padFiltered) throws PreprocessingException
IFilter
padSample
- original sample to apply filtering to; should not be alteredpadFiltered
- buffer for filtered data
true if filtering was successful and/or there were any changes
- Throws:
PreprocessingException
- if any error happened during filtering- See Also:
IFilter.filter(double[][], double[][])
public boolean filter(double[][][] padSample, double[][][] padFiltered) throws PreprocessingException
IFilter
padSample
- original sample to apply filtering to; should not be alteredpadFiltered
- buffer for filtered data
true if filtering was successful and/or there were any changes
- Throws:
PreprocessingException
- if any error happened during filtering- See Also:
IFilter.filter(double[][][], double[][][])
public abstract ComplexMatrix h()
public boolean removeNoise() throws PreprocessingException
removeNoise
in interface IPreprocessing
removeNoise
in class Preprocessing
PreprocessingException
- declared but never thrownLowPassFilter
,
Preprocessing.removeNoise()
public void backSynchronizeObject()
Preprocessing
backSynchronizeObject
in class Preprocessing
StorageManager.restore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |