CategoryType
- @PublicationReferences(references=@PublicationReference(author="Peter W. H. Smith and W. Aldridge ",title="Improving Authorship Attribution: Optimizing Burrows\' Delta Method",type=Journal,year=2011,pages={63,88})) public class CosineDeltaCategorizer<CategoryType> extends AbstractDeltaCategorizer<CategoryType>
Modifier and Type | Class and Description |
---|---|
static class |
CosineDeltaCategorizer.Learner<CategoryType>
Learner for a CosineDeltaCategorizer.
|
AbstractDeltaCategorizer.AbstractLearner<CategoryType>
featureStddev, learner
Modifier | Constructor and Description |
---|---|
protected |
CosineDeltaCategorizer(CosineDeltaCategorizer.Learner<CategoryType> learner,
java.util.ArrayList<java.lang.Double> featureStddev,
java.util.ArrayList<java.lang.Double> featureMean)
Constructor that takes learner, featureStddev, and featureMeans.
|
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 CosineDelta.
|
java.util.List<java.lang.Double> |
getFeatureMeans()
Getter for featureMeans.
|
getCategories, getFeatureStddev
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected CosineDeltaCategorizer(CosineDeltaCategorizer.Learner<CategoryType> learner, java.util.ArrayList<java.lang.Double> featureStddev, java.util.ArrayList<java.lang.Double> featureMean)
learner
- featureStddev
- featureMean
- public java.util.List<java.lang.Double> getFeatureMeans()
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
-