se.lth.cs.nlp.nlputils.ml
Class BinaryLinearClassifier<T>

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.ml.Classifier<T>
      extended by se.lth.cs.nlp.nlputils.ml.BinaryNumericClassifier<T>
          extended by se.lth.cs.nlp.nlputils.ml.BinaryLinearClassifier<T>
All Implemented Interfaces:
Serializable

public class BinaryLinearClassifier<T>
extends BinaryNumericClassifier<T>

A binary linear classifier.

Author:
Richard Johansson (richard@cs.lth.se)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class se.lth.cs.nlp.nlputils.ml.BinaryNumericClassifier
classes, encoding
 
Fields inherited from class se.lth.cs.nlp.nlputils.ml.Classifier
extractor, list
 
Constructor Summary
BinaryLinearClassifier()
           
 
Method Summary
 double apply(int[] indices)
          Applies the discriminator function.
 
Methods inherited from class se.lth.cs.nlp.nlputils.ml.BinaryNumericClassifier
apply, classify
 
Methods inherited from class se.lth.cs.nlp.nlputils.ml.Classifier
classify, classifyRestricted, setFeatureExtractor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryLinearClassifier

public BinaryLinearClassifier()
Method Detail

apply

public double apply(int[] indices)
Description copied from class: BinaryNumericClassifier
Applies the discriminator function.

Specified by:
apply in class BinaryNumericClassifier<T>
Parameters:
indices - the sorted array of feature indices.
Returns:
the value of the discriminator function.