public class VotingSchema
extends java.lang.Object
Constructor and Description |
---|
VotingSchema(int minMatches,
int maxVotesToTake)
Initialize voting m-out-of-n.
|
public VotingSchema(int minMatches, int maxVotesToTake)
minMatches
- Minimum number of matches over allowed IDsmaxVotesToTake
- Number of IDs to take as allowedpublic float match(short[] clusterIds1, short[] clusterIds2)
clusterIds1
- a list of IDs (one per clustering) for the first objectclusterIds2
- a list of IDs (one per clustering) for the second objectminMatches
).
One is returned when the matches are equal to maxVotesToTake
.public java.lang.String toString()
toString
in class java.lang.Object