public class VoteDistribution extends Classification implements HasProbability
Classification.Type| Constructor and Description |
|---|
VoteDistribution() |
VoteDistribution(Map<String,Double> votes) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getCategoryValues()
Gets the set of known categories.
|
Double |
getProbability(String value)
Gets the probability of the specified category.
|
computeResult, createOrdering, entryKeys, entrySet, entryValues, get, getResult, getType, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, isEmpty, keySet, normalize, normalizeSoftMax, normalizeValues, put, setResult, sum, sumValues, toString, toStringHelperpublic Set<String> getCategoryValues()
CategoricalResultFeatureGets the set of known categories.
The set of known categories either equals the set of all categories, or is a proper subset of it.
getCategoryValues in interface CategoricalResultFeaturepublic Double getProbability(String value)
HasProbabilityGets the probability of the specified category.
getProbability in interface HasProbabilityCategoricalResultFeature.getCategoryValues()Copyright © 2017. All Rights Reserved.