|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for internal (primitive type) classifiers. Implementing objects are typically vended by IClassifierFactory objects and represent a trained classifier. The assumption is that all data points are represented by double arrays and that there are fixed number of classes, each represented by an integer from 0 to the number of classes. The maps to and from these primitive representations are maintained by a wrapper class. If these restrictions are not appropriate for a given task, Classifier should be implemented directly. Usage: classOf returns a best class, breaking ties arbitrarily, while scoresOf produces a score for each class. A typical interpretation would be that the scores are conditional probabilities and that the class one with a highest conditional likelihood.
Method Summary | |
int |
classOf(double[] data)
The internal classification function. |
double[] |
scoresOf(double[] data)
The internal scoring function. |
Method Detail |
public int classOf(double[] data)
data
- a data point, as a double array of feature values
public double[] scoresOf(double[] data)
data
- a data point, as a double array of feature values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |