public final class DiscreteStatistics extends Object
DiscrStats element.PMMLSummaryStatisticsModel| Constructor and Description |
|---|
DiscreteStatistics()
Creates an empty
DiscrStats element. |
| Modifier and Type | Method and Description |
|---|---|
String |
getModalValue()
Returns the most frequent value of the field
|
long |
getValueCount(String value)
Returns the number of occurrences of the given value
|
Map<String,Long> |
getValueCounts()
Returns a mapping of discrete value counts.
|
void |
setModalValue(String modalValue)
Sets the most frequent value of the field
|
void |
setValueCounts(Map<String,Long> valueCounts)
Sets a mapping of discrete value counts.
|
void |
setValueCounts(String value,
long count)
Sets the number of occurrences of the given value
|
public DiscreteStatistics()
DiscrStats element.public Map<String,Long> getValueCounts()
public void setValueCounts(Map<String,Long> valueCounts)
valueCounts - a mapping of discrete value countspublic long getValueCount(String value)
value - a discrete value of the field.public void setValueCounts(String value, long count)
value - a discrete value of the field.count - the number of occurrences of the given valuepublic String getModalValue()
public void setModalValue(String modalValue)
modalValue - the most frequent value of the fieldCopyright © 2016 Actian Corporation. All rights reserved.