Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author


imp.classifier
Class YgPolynomialClassifier

java.lang.Object
  extended by imp.classifier.Classifier
      extended by imp.classifier.YgPolynomialClassifier

public class YgPolynomialClassifier
extends Classifier

Defines an implementation of the polynomial Y. Guermeur classifier.


Nested Class Summary
 
Nested classes/interfaces inherited from class imp.classifier.Classifier
Classifier.Data
 
Constructor Summary
YgPolynomialClassifier()
          Constructs a YG polynomial classifier.
 
Method Summary
 int getSize()
          Returns the number N of prototypes.
 double getYgDimension()
          Returns the Y.
 YgPolynomialClassifier setDegree(int degree)
          Sets the classifier degree and return this.
 YgPolynomialClassifier setMargin(double margin)
          Sets the classifier margin and return this.
 
Methods inherited from class imp.classifier.Classifier
add, getCategory, getData, getMargin, getName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YgPolynomialClassifier

public YgPolynomialClassifier()
Constructs a YG polynomial classifier.

Method Detail

getSize

public int getSize()
Returns the number N of prototypes.


getYgDimension

public double getYgDimension()
Returns the Y. Guermeur dimension = (N-1) * N / 2 >_{i<j n} ||a_i - a_j||^2 / D^2.


setDegree

public YgPolynomialClassifier setDegree(int degree)
Sets the classifier degree and return this.

Parameters:
degree - Degree of the polynomial, default is 0: yielding automatic adjustment.

setMargin

public YgPolynomialClassifier setMargin(double margin)
Sets the classifier margin and return this.

Parameters:
margin - Minimal margin between prototypes, default is 1.