DataType
- Type of Data to summarize.public class MostFrequentSummarizer<DataType> extends AbstractCloneableSerializable implements Summarizer<DataType,DataType>
Constructor and Description |
---|
MostFrequentSummarizer()
Creates a new
MostFrequentSummarizer . |
Modifier and Type | Method and Description |
---|---|
DataType |
summarize(java.util.Collection<? extends DataType> data)
Summarizes the given data by returning the most frequent value.
|
clone
public MostFrequentSummarizer()
MostFrequentSummarizer
.public DataType summarize(java.util.Collection<? extends DataType> data)
summarize
in interface Summarizer<DataType,DataType>
data
- The data to summarize.