public class VoteDistribution extends Classification implements HasProbability
Classification.Type| Constructor and Description |
|---|
VoteDistribution() |
VoteDistribution(java.util.Map<java.lang.String,java.lang.Double> votes) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getCategoryValues()
Gets the set of known categories.
|
java.lang.Double |
getProbability(java.lang.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 VoteDistribution()
public VoteDistribution(java.util.Map<java.lang.String,java.lang.Double> votes)
public java.util.Set<java.lang.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 java.lang.Double getProbability(java.lang.String value)
HasProbabilityGets the probability of the specified category.
getProbability in interface HasProbabilityCategoricalResultFeature.getCategoryValues()Copyright © 2017. All Rights Reserved.