CategoryType
- @PublicationReferences(references=@PublicationReference(author="John Burrows",title="\u2018Delta\u2019: a Measure of Stylistic Difference and a Guide to Likely Authorship",type=Journal,year=2002,pages={267,287})) public class BurrowsDeltaCategorizer<CategoryType> extends AbstractDeltaCategorizer<CategoryType>
Modifier and Type | Class and Description |
---|---|
static class |
BurrowsDeltaCategorizer.Learner<CategoryType>
Learner for a BurrowsDeltaCategorizer.
|
AbstractDeltaCategorizer.AbstractLearner<CategoryType>
featureStddev, learner
Modifier | Constructor and Description |
---|---|
protected |
BurrowsDeltaCategorizer(BurrowsDeltaCategorizer.Learner<CategoryType> learner,
java.util.ArrayList<java.lang.Double> featureStddev)
Constructor that takes a learner and featureStddev.
|
Modifier and Type | Method and Description |
---|---|
CategoryType |
evaluate(Vector unknownInput)
Evaluates an unknown input, but does not return the discriminant value.
|
ValueDiscriminantPair<CategoryType,java.lang.Double> |
evaluateWithDiscriminant(Vector unknownVector)
This method implements the evaluation aspect of BurrowsDelta.
|
getCategories, getFeatureStddev
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected BurrowsDeltaCategorizer(BurrowsDeltaCategorizer.Learner<CategoryType> learner, java.util.ArrayList<java.lang.Double> featureStddev)
learner
- featureStddev
- public ValueDiscriminantPair<CategoryType,java.lang.Double> evaluateWithDiscriminant(Vector unknownVector)
evaluateWithDiscriminant
in interface DiscriminantCategorizer<Vector,CategoryType,java.lang.Double>
evaluateWithDiscriminant
in class AbstractDeltaCategorizer<CategoryType>
unknownVector
- public CategoryType evaluate(Vector unknownInput)
unknownInput
-