C
- the class of instances that represent the classification categoriespublic interface ClassificationWithConfidence<C> extends Classification<C>
classification
that contains a confidence level.
The result is a list of categories that the target of the classification belongs to.
Depending on the implementation the confidence levels may be specified.Modifier and Type | Method and Description |
---|---|
float |
getConfidence(C category)
Returns the confidence for the given category.
|
float |
getHighestConfidence()
Returns the highest possible confidence of this classification.
|
float |
getLowestConfidence()
Returns the lowest possible confidence of this classification.
|
contains, getStoredClass, iterator, size
float getConfidence(C category) throws java.util.NoSuchElementException
getLowestConfidence()
and
getHighestConfidence()
that represents the classification's
confidence about a particular category assignment.category
- the category for which to get the confidencejava.util.NoSuchElementException
- if the category is not in this classificationfloat getLowestConfidence()
float getHighestConfidence()