|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.MARF
Class MARF
Implements a so-called MARF server.
Provides basic recognition pipeline and its configuration.
$Header: /cvsroot/marf/marf/src/marf/MARF.java,v 1.56 2004/05/03 22:14:02 mokhov Exp $
Field Summary | |
static int |
BANDPASS_FFT_FILTER
Indicates to use bandpass filter |
static int |
CEPSTRAL
Indicates to use cepstral analysis |
static int |
CHEBYSHEV_DISTANCE
Indicates to use Chebyshev distance for classification |
static int |
CITYBLOCK_DISTANCE
A synonym to Chebyshev distance |
static boolean |
DEBUG
Debug flag. |
static int |
DUMMY
Indicates to use Dummy preprocessing module (just normalization) |
static int |
ENDPOINT
Indicates to use endpointing |
static int |
EUCLIDEAN_DISTANCE
Indicates to use Euclidean distance for classification |
static int |
F0
Indicates to use F0 |
static int |
FFT
Indicates to use FFT |
static int |
HIGH_FREQUENCY_BOOST_FFT_FILTER
Indicates to use filter boosting high frequencies |
static int |
HIGH_PASS_FFT_FILTER
Indicates to use high pass FFT filter |
static int |
LOW_PASS_FFT_FILTER
Indicates to use low pass FFT filter |
static int |
LPC
Indicates to use LPC |
static int |
MAHALANOBIS_DISTANCE
Indicates to use Mahalanobis distance for classification |
static int |
MANHATTAN_DISTANCE
A synonym to Chebyshev distance |
static int |
MARKOV
Indicates to use Hidden Markov Models for classification |
static int |
MINKOWSKI_DISTANCE
Indicates to use Minkowski distance for classification |
static int |
MP3
Indicates MP3 incoming sample file format |
static int |
NEURAL_NETWORK
Indicates to use Neural Network for classification |
static int |
RANDOM_CLASSIFICATION
Indicates to use random classification |
static int |
RANDOM_FEATURE_EXTRACTION
Indicates to use random feature extraction |
static int |
SEGMENTATION
Indicates to use segmentation |
static int |
STOCHASTIC
Indicates to use stochastic models for classification |
static int |
ULAW
Indicates ULAW incoming sample file format |
static int |
WAV
Indicates WAV incoming sample file format |
Method Summary | |
static void |
debug(java.lang.String pstrMsg)
Outputs param to STDERR if DEBUG is enabled |
static Classification |
getClassification()
Retrieves current Classification reference |
static int |
getClassificationMethod()
Gets classification method to be used |
static java.lang.String |
getConfig()
Returns a string representation of the current MARF configuration |
static int |
getCurrentSubject()
Gets ID of a subject currently being trained on |
static boolean |
getDumpSpectrogram()
Whether spectrogram wanted or not |
static boolean |
getDumpWaveGraph()
Whether wave graph wanted or not |
static FeatureExtraction |
getFeatureExtraction()
Retrieves current FeatureExtraction reference |
static int |
getFeatureExtractionMethod()
Gets currently selected feature extraction method. |
static int |
getIntVersion()
Returns an integer representation of the MARF version |
static ModuleParams |
getModuleParams()
Gets module-specific parameters an application programmer passed on to the module |
static Preprocessing |
getPreprocessing()
Retrieves current Preprocessing reference |
static int |
getPreprocessingMethod()
Gets currently selected preprocessing method. |
static Result |
getResult()
Gets the entire Result object |
static Sample |
getSample()
Retrieves current Sample reference |
static java.lang.String |
getSampleFile()
Obtains filename of a sample currently being processed |
static int |
getSampleFormat()
Gets input sample file format |
static SampleLoader |
getSampleLoader()
Retrieves current SampleLoader reference |
static java.lang.String |
getVersion()
Returns a string representation of the MARF version |
static int |
queryResultID()
Queries for the final classification result |
static void |
recognize()
Recognition/Identification mode |
static void |
setClassificationMethod(int piClassificationMethod)
Sets classification method to be used |
static void |
setCurrentSubject(int piSubjectID)
Sets ID of a subject currently being trained on |
static void |
setDumpSpectrogram(boolean pbDump)
Indicates whether spectrogram is wanted as an output of a FeatureExtraction module |
static void |
setDumpWaveGraph(boolean pbDump)
Indicates whether wave graph is wanted as an output |
static void |
setFeatureExtractionMethod(int piFeatureExtractionMethod)
Sets feature extraction method to be used |
static void |
setModuleParams(ModuleParams poModuleParams)
Sets module-specific parameters an application programmer wishes to pass on to the module |
static void |
setPreprocessingMethod(int piPreprocessingMethod)
Sets preprocessing method to be used |
static void |
setSampleFile(java.lang.String pstrFileName)
Sets input sample file name |
static void |
setSampleFormat(int piSampleFormat)
Sets input sample file format |
static void |
setSamplesDir(java.lang.String pstrSamplesDir)
Sets directory with sample files to be read from |
static void |
streamedRecognition()
Meant to provide implementation of the buffered sample processing for large samples. |
static void |
train()
Training mode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean DEBUG
if is set to true
, prompts debug() method to output to STDERR
public static final int DUMMY
public static final int HIGH_FREQUENCY_BOOST_FFT_FILTER
public static final int BANDPASS_FFT_FILTER
public static final int ENDPOINT
public static final int LOW_PASS_FFT_FILTER
public static final int HIGH_PASS_FFT_FILTER
public static final int LPC
public static final int FFT
public static final int F0
public static final int SEGMENTATION
public static final int CEPSTRAL
public static final int RANDOM_FEATURE_EXTRACTION
public static final int NEURAL_NETWORK
public static final int STOCHASTIC
public static final int MARKOV
public static final int EUCLIDEAN_DISTANCE
public static final int CHEBYSHEV_DISTANCE
public static final int MANHATTAN_DISTANCE
public static final int CITYBLOCK_DISTANCE
public static final int MINKOWSKI_DISTANCE
public static final int MAHALANOBIS_DISTANCE
public static final int RANDOM_CLASSIFICATION
public static final int WAV
public static final int MP3
public static final int ULAW
Method Detail |
public static final void setPreprocessingMethod(int piPreprocessingMethod) throws MARFException
piPreprocessingMethod
- one of the allowed preprocessing methods
MARFException
public static final int getPreprocessingMethod()
public static final void setFeatureExtractionMethod(int piFeatureExtractionMethod) throws MARFException
piFeatureExtractionMethod
- one of the allowed feature extraction methods
MARFException
public static final int getFeatureExtractionMethod()
public static final void setClassificationMethod(int piClassificationMethod) throws MARFException
piClassificationMethod
- one of the allowed classification methods
MARFException
public static final int getClassificationMethod()
public static final void setSampleFormat(int piSampleFormat)
piSampleFormat
- one of the allowed sample formatspublic static final int getSampleFormat()
public static final void setSampleFile(java.lang.String pstrFileName)
pstrFileName
- string representing sample file to be readpublic static final java.lang.String getSampleFile()
public static final void setSamplesDir(java.lang.String pstrSamplesDir)
pstrSamplesDir
- string representing directory namepublic static final void setModuleParams(ModuleParams poModuleParams)
poModuleParams
- parameters' instancepublic static final ModuleParams getModuleParams()
public static final void setDumpSpectrogram(boolean pbDump)
pbDump
- true
if wanted, false
if notpublic static final boolean getDumpSpectrogram()
true
if spectrogram being dumped, false
otherwisepublic static final void setDumpWaveGraph(boolean pbDump)
public static final boolean getDumpWaveGraph()
true
if graph wanted being dumped, false
otherwisepublic static final void setCurrentSubject(int piSubjectID)
piSubjectID
- integer ID of the subjectpublic static final int getCurrentSubject()
public static final java.lang.String getVersion()
public static final int getIntVersion()
public static final java.lang.String getConfig()
public static final Sample getSample()
Sample
reference
public static final SampleLoader getSampleLoader()
SampleLoader
reference
public static final Preprocessing getPreprocessing()
Preprocessing
reference
public static final FeatureExtraction getFeatureExtraction()
FeatureExtraction
reference
public static final Classification getClassification()
Classification
reference
public static final int queryResultID()
public static final Result getResult()
public static final void recognize() throws MARFException
MARFException
public static final void train() throws MARFException
MARFException
public static final void streamedRecognition()
public static final void debug(java.lang.String pstrMsg)
pstrMsg
- message to output.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |