com.aliasi.stats
Interface Model<E>

Type Parameters:
E - the type of objects being modeled
All Known Implementing Classes:
CompiledNGramBoundaryLM, CompiledNGramProcessLM, NGramBoundaryLM, NGramProcessLM

public interface Model<E>

A Model represents a generic interface for classes that estimate probabilities of objects.

Since:
LingPipe3.5.1
Version:
3.5.1
Author:
Bob Carpenter

Method Summary
 double log2Prob(E e)
          Returns the log (base 2) of the probability of the specified object.
 double prob(E e)
          Returns the probability of the specified object.
 

Method Detail

prob

double prob(E e)
Returns the probability of the specified object.

Parameters:
e - The object whose probability is returned.
Returns:
The probability of the specified object.

log2Prob

double log2Prob(E e)
Returns the log (base 2) of the probability of the specified object.

Parameters:
e - The object whose probability is returned.
Returns:
The log (base 2) probability of the specified object.