se.lth.cs.nlp.nlputils.ml
Class BinaryQuadraticClassifier<T>
java.lang.Object
  
se.lth.cs.nlp.nlputils.ml.Classifier<T>
      
se.lth.cs.nlp.nlputils.ml.BinaryNumericClassifier<T>
          
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
 
 
 
 
 
| 
Method Summary | 
 double | 
apply(int[] indices)
 
          Applies the discriminator function. | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BinaryQuadraticClassifier
public BinaryQuadraticClassifier(NumericEncoding enc,
                                 Object[] labels,
                                 double[] lC,
                                 int[][] qInd,
                                 double[][] qC,
                                 double rho)
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.