T
- The feature class.K
- The category class.public class Classification<T,K>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private K |
category
The category as which the featureset was classified.
|
private java.util.Collection<T> |
featureset
The classified featureset.
|
private float |
probability
The probability that the featureset belongs to the given category.
|
Constructor and Description |
---|
Classification(java.util.Collection<T> featureset,
K category)
Constructs a new Classification with the parameters given and a default
probability of 1.
|
Classification(java.util.Collection<T> featureset,
K category,
float probability)
Constructs a new Classification with the parameters given.
|
Modifier and Type | Method and Description |
---|---|
K |
getCategory()
Retrieves the category the featureset was classified as.
|
java.util.Collection<T> |
getFeatureset()
Retrieves the featureset classified.
|
float |
getProbability()
Retrieves the classification's probability.
|
java.lang.String |
toString() |
private java.util.Collection<T> featureset
private K category
private float probability
public Classification(java.util.Collection<T> featureset, K category)
featureset
- The featureset.category
- The category.public java.util.Collection<T> getFeatureset()
public float getProbability()
public K getCategory()
public java.lang.String toString()
toString
in class java.lang.Object