|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPreprocessing
Preprocessing Interface.
$Id: IPreprocessing.java,v 1.7 2006/07/28 16:56:22 mokhov Exp $
Field Summary | |
---|---|
static java.lang.String |
MARF_INTERFACE_CODE_REVISION
Interface source code revision. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Enable cloning of preprocessing modules in accordance with the Cloneable interface. |
boolean |
cropAudio(double pdStartingFrequency,
double pdEndFrequency)
Derivatives implement this method to crop arbitrary part of the audio sample. |
Sample |
getSample()
Returns enclosed sample. |
boolean |
normalize()
Normalization of entire incoming samples by amplitude. |
boolean |
normalize(int piIndexFrom)
Normalization of incoming samples by amplitude starting from certain index. |
boolean |
normalize(int piIndexFrom,
int piIndexTo)
Normalization of incoming samples by amplitude between specified indexes. |
boolean |
preprocess()
Derivatives must implement this method to do general preprocessing and perhaps calling removeNoise()
and removeSilence() . |
boolean |
removeNoise()
Derivatives should implement this method to remove noise from the sample. |
boolean |
removeSilence()
Derivatives should implement this method to remove silence. |
void |
setSample(Sample poSample)
Allows setting a sample object reference. |
Field Detail |
---|
static final java.lang.String MARF_INTERFACE_CODE_REVISION
Method Detail |
---|
boolean preprocess() throws PreprocessingException
removeNoise()
and removeSilence()
.
PreprocessingException
- if an error occurred while preprocessingremoveNoise()
,
removeSilence()
boolean removeNoise() throws PreprocessingException
PreprocessingException
- declared but never thrownboolean removeSilence() throws PreprocessingException
PreprocessingException
- declared but never thrownboolean normalize() throws PreprocessingException
true
if the sample has been successfully normalized;
false
otherwise
PreprocessingException
- if internal sample reference is nullboolean normalize(int piIndexFrom) throws PreprocessingException
piIndexFrom
- sample array index to start normalization from
true
if the sample has been successfully normalized;
false
otherwise
PreprocessingException
- if internal sample reference is nullnormalize(int, int)
boolean normalize(int piIndexFrom, int piIndexTo) throws PreprocessingException
piIndexFrom
- sample array index to start normalization frompiIndexTo
- sample array index to end normalization at
true
if the sample has been successfully normalized;
false
otherwise
PreprocessingException
- if internal sample reference is null or one or
both indexes are out of rangeboolean cropAudio(double pdStartingFrequency, double pdEndFrequency) throws PreprocessingException
pdStartingFrequency
- double Frequency to start to crop frompdEndFrequency
- double Frequency to crop the sample to
true
- cropped, false
- not
PreprocessingException
- declared, but is never thrownSample getSample()
void setSample(Sample poSample)
poSample
- new sample objectjava.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if for some reason cloning is unsupported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |