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


imp.classifier
Class YgClassifier

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

public class YgClassifier
extends Classifier

Defines an implementation of the Y. Guermeur classifier.


Nested Class Summary
 
Nested classes/interfaces inherited from class imp.classifier.Classifier
Classifier.Data
 
Constructor Summary
YgClassifier()
          Constructs a YG classifier.
 
Method Summary
 int getSize()
          Returns the number N of prototypes.
 double getYgDimension()
          Returns the Y.
 YgClassifier 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

YgClassifier

public YgClassifier()
Constructs a YG 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.


setMargin

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

Parameters:
margin - Minimal margin between prototypes, default is 0 to obtain the minimal margin compatible with the calibration data set.