|
||||||||||
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.FFTFilter.FFTFilter marf.Preprocessing.FFTFilter.HighFrequencyBoost
public class HighFrequencyBoost
HighFrequencyBoost class implements filtering using high frequency booster on top of the FFTFilter.
$Id: HighFrequencyBoost.java,v 1.16 2005/06/16 19:58:47 mokhov Exp $
Field Summary | |
---|---|
static double |
BASE_BOOST_COEFFICIENT
Default boost rate of 5*PI to be applied to apmplitude values. |
static int |
DEFAULT_HIGH_FREQUENCY_CUTOFF
Create a response that boosts all frequencies above 1000 Hz. |
Fields inherited from class marf.Preprocessing.FFTFilter.FFTFilter |
---|
adFreqResponse, DEFAULT_FREQUENCY_RESPONSE_SIZE |
Fields inherited from class marf.Preprocessing.Preprocessing |
---|
oSample |
Fields inherited from class marf.Storage.StorageManager |
---|
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
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 | |
---|---|
HighFrequencyBoost(Preprocessing poPreprocessing)
Pipelined preprocessing constructor. |
|
HighFrequencyBoost(Sample poSample)
HighFrequencyBoost Constructor. |
Method Summary | |
---|---|
boolean |
cropAudio(double pdStartingFrequency,
double pdEndFrequency)
Stub implementation of cropAudio() . |
void |
genereateResponseCoefficients()
Creates high-frequency boost response coefficients and sets applies them to the frequency response vector. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
boolean |
preprocess()
Overrides FFTFilter's preprocess() with extra normalization after the boost. |
boolean |
removeNoise()
Stub implementation of removeNoise() . |
boolean |
removeSilence()
Stub implementation of removeSilence() . |
Methods inherited from class marf.Preprocessing.FFTFilter.FFTFilter |
---|
filter, setFrequencyResponse |
Methods inherited from class marf.Preprocessing.Preprocessing |
---|
backSynchronizeObject, getSample, normalize, normalize, normalize |
Methods inherited from class marf.Storage.StorageManager |
---|
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final transient int DEFAULT_HIGH_FREQUENCY_CUTOFF
public static final transient double BASE_BOOST_COEFFICIENT
Constructor Detail |
---|
public HighFrequencyBoost(Preprocessing poPreprocessing) throws PreprocessingException
poPreprocessing
- followup preprocessing module
PreprocessingException
public HighFrequencyBoost(Sample poSample) throws PreprocessingException
poSample
- incoming sample
PreprocessingException
Method Detail |
---|
public final boolean preprocess() throws PreprocessingException
preprocess()
with extra normalization after the boost.
TODO: Normalization only applied to the boosted part.
preprocess
in interface IPreprocessing
preprocess
in class FFTFilter
true
if there were changes to the sample
PreprocessingException
- if there were problems during
undelying supper.preprocess()
or normalize()
.IPreprocessing.removeNoise()
,
IPreprocessing.removeSilence()
public final boolean removeNoise() throws PreprocessingException
removeNoise()
.
removeNoise
in interface IPreprocessing
removeNoise
in class Preprocessing
false
PreprocessingException
- never thrownpublic final boolean removeSilence() throws PreprocessingException
removeSilence()
.
removeSilence
in interface IPreprocessing
removeSilence
in class Preprocessing
false
PreprocessingException
- never thrownpublic final boolean cropAudio(double pdStartingFrequency, double pdEndFrequency) throws PreprocessingException
cropAudio()
.
cropAudio
in interface IPreprocessing
cropAudio
in class Preprocessing
pdStartingFrequency
- unusedpdEndFrequency
- unused
false
PreprocessingException
- never thrownpublic void genereateResponseCoefficients()
genereateResponseCoefficients
in class FFTFilter
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |