CategoryType - @PublicationReferences(references=@PublicationReference(author="John Burrows",title="\'Delta\': a Measure of Stylistic Difference and a Guide to Likely Authorship",type=Journal,year=2002,pages={267,287})) public abstract class AbstractDeltaCategorizer<CategoryType> extends AbstractCloneableSerializable implements DiscriminantCategorizer<Vector,CategoryType,java.lang.Double>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDeltaCategorizer.AbstractLearner<CategoryType>
Abstract learner for delta algorithms.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<java.lang.Double> |
featureStddev
The stddev of each feature.
|
protected AbstractDeltaCategorizer.AbstractLearner<CategoryType> |
learner
The learner that was used to train this categorizer.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDeltaCategorizer(AbstractDeltaCategorizer.AbstractLearner<CategoryType> learner,
java.util.ArrayList<java.lang.Double> featureStddev)
Constructor that takes a learner and featureStddev.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ValueDiscriminantPair<CategoryType,java.lang.Double> |
evaluateWithDiscriminant(Vector unknownInput)
This abstract method should implement evaluation aspect of this general
algorithm.
|
java.util.Set<? extends CategoryType> |
getCategories()
Returns a set of all the known categories.
|
java.util.List<java.lang.Double> |
getFeatureStddev()
Getter for featureStddev
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneprotected final AbstractDeltaCategorizer.AbstractLearner<CategoryType> learner
protected final java.util.ArrayList<java.lang.Double> featureStddev
protected AbstractDeltaCategorizer(AbstractDeltaCategorizer.AbstractLearner<CategoryType> learner, java.util.ArrayList<java.lang.Double> featureStddev)
learner - featureStddev - public abstract ValueDiscriminantPair<CategoryType,java.lang.Double> evaluateWithDiscriminant(Vector unknownInput)
evaluateWithDiscriminant in interface DiscriminantCategorizer<Vector,CategoryType,java.lang.Double>unknownInput - public java.util.Set<? extends CategoryType> getCategories()
getCategories in interface Categorizer<Vector,CategoryType>public java.util.List<java.lang.Double> getFeatureStddev()