public class MajorityVoting extends Object
Constructor and Description |
---|
MajorityVoting() |
Modifier and Type | Method and Description |
---|---|
static <A> ObjectFloatPair<A> |
calculateBasicMajorityVote(List<A> data)
Returns the basic majority vote or null if there is no majority within
the given list of annotations.
|
static <A> Map<String,ObjectFloatPair<A>> |
calculateBasicMajorityVote(Map<String,List<A>> data)
Calculated the majority vote for a set of subjects, where each subject
has a set of answers.
|
public MajorityVoting()
public static <A> ObjectFloatPair<A> calculateBasicMajorityVote(List<A> data)
data
- The list of annotations to scorepublic static <A> Map<String,ObjectFloatPair<A>> calculateBasicMajorityVote(Map<String,List<A>> data)
data
- The data