marf.Stats.StatisticalEstimators
Interface IStatisticalEstimator

All Known Implementing Classes:
StatisticalEstimator

public interface IStatisticalEstimator

Represents Statistical Estimator interface. If concrete statistical estimators cannot inherit from the generic StatisticalEstimator class (which provides most generic implementation), they must implement this interface then.

$Id: IStatisticalEstimator.java,v 1.2 2006/01/15 01:50:57 mokhov Exp $

Since:
0.3.0.3
Version:
$Revision: 1.2 $
Author:
Serguei Mokhov

Field Summary
static java.lang.String MARF_INTERFACE_CODE_REVISION
          Interface source code revision.
 
Method Summary
 java.lang.String getLanguage()
          Retrieves current language.
 ProbabilityTable getProbabilityTable()
          Retrieves current probabilities table.
 NLPStreamTokenizer getStreamTokenizer()
          Retrieves current stream tokenizer.
 double p()
          Classification via calculation of a probability p.
 void setLanguage(java.lang.String pstrLang)
          Allows alteration of the current language being processed.
 void setStreamTokenizer(NLPStreamTokenizer poStreamTokenizer)
          Sets desired stream tokenizer.
 boolean train()
          Every estimator needs to implement its specific training method.
 

Field Detail

MARF_INTERFACE_CODE_REVISION

public static final java.lang.String MARF_INTERFACE_CODE_REVISION
Interface source code revision.

See Also:
Constant Field Values
Method Detail

p

public double p()
Classification via calculation of a probability p.

Returns:
calculated probability value

train

public boolean train()
Every estimator needs to implement its specific training method.

Returns:
true if training was successful

setStreamTokenizer

public void setStreamTokenizer(NLPStreamTokenizer poStreamTokenizer)
Sets desired stream tokenizer.

Parameters:
poStreamTokenizer - NLPStreamTokenizer or a derivative to use for tokens
See Also:
NLPStreamTokenizer

getStreamTokenizer

public NLPStreamTokenizer getStreamTokenizer()
Retrieves current stream tokenizer.

Returns:
the stream tokenizer beeing used

getProbabilityTable

public ProbabilityTable getProbabilityTable()
Retrieves current probabilities table.

Returns:
probabilities table beeing used
See Also:
ProbabilityTable

setLanguage

public void setLanguage(java.lang.String pstrLang)
Allows alteration of the current language being processed.

Parameters:
pstrLang - desired language

getLanguage

public java.lang.String getLanguage()
Retrieves current language.

Returns:
language name of language being processed


SourceForge Logo