se.lth.cs.nlp.nlputils.ml
Class BinaryQuadraticClassifier<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.BinaryQuadraticClassifier<T>
All Implemented Interfaces:
Serializable

public class BinaryQuadraticClassifier<T>
extends BinaryNumericClassifier<T>

A binary quadratic 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
BinaryQuadraticClassifier(NumericEncoding enc, Object[] labels, double[] lC, int[][] qInd, double[][] qC, double rho)
           
 
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

BinaryQuadraticClassifier

public BinaryQuadraticClassifier(NumericEncoding enc,
                                 Object[] labels,
                                 double[] lC,
                                 int[][] qInd,
                                 double[][] qC,
                                 double rho)
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.