public final class UnivariateStats extends Object
UnivariateStats
element.PMMLSummaryStatisticsModel
Constructor and Description |
---|
UnivariateStats(String field)
Create a new UnivariateStats element for the given field.
|
Modifier and Type | Method and Description |
---|---|
Long |
getCardinality()
Returns the value of the "cardinality" attribute of the
Counts
sub-element. |
AbstractContinuousStatistics<? extends Number> |
getContinuousStatistics()
Returns the value of the
ContStats sub-element. |
DiscreteStatistics |
getDiscreteStatistics()
Returns the value of the
DiscrStats sub-element. |
String |
getField()
Returns the value of the "field" attribute
|
Long |
getInvalidFrequency()
Returns the value of the "invalidFreq" attribute of the
Counts
sub-element. |
String |
getMaxValue()
Get the maximum value of the field.
|
String |
getMinValue()
Get the minimum value of the field.
|
Long |
getMissingFrequency()
Returns the value of the "missingFreq" attribute of the
Counts
sub-element. |
AbstractNumericInfo<? extends Number> |
getNumericInfo()
Returns the value of the
NumericInfo sub-element. |
long |
getTestFailureCount(String testName)
Returns the test failure count for the given test name.
|
Map<String,Long> |
getTestFailureCounts()
Returns a mapping of test failures counts.
|
long |
getTotalFrequency()
Returns the value of the "totalFreq" attribute of the
Counts
sub-element. |
void |
setCardinality(Long cardinality)
Sets the value of the "cardinality" attribute of the
Counts
sub-element. |
void |
setContinuousStatistics(AbstractContinuousStatistics<? extends Number> continuousStatistics)
Sets the value of the
ContStats sub-element. |
void |
setDiscreteStatistics(DiscreteStatistics discreteStatistics)
Sets the value of the
DiscrStats sub-element. |
void |
setInvalidFrequency(Long invalidFrequency)
Sets the value of the "invalidFreq" attribute of the
Counts
sub-element. |
void |
setMaxValue(String maxValue)
Set the maximum value of the field.
|
void |
setMinValue(String minValue)
Set the minimum value of the field.
|
void |
setMissingFrequency(Long missingFrequency)
Sets the value of the "missingFreq" attribute of the
Counts
sub-element. |
void |
setNumericInfo(AbstractNumericInfo<? extends Number> numericInfo)
Sets the value of the
NumericInfo sub-element. |
void |
setTestFailureCount(String testName,
long failureCount)
Sets the test failure count for the given test name.
|
void |
setTestFailureCounts(Map<String,Long> testFailureCounts)
Sets a mapping of test failures counts.
|
void |
setTotalFrequency(long totalFrequency)
Sets the value of the "totalFreq" attribute of the
Counts
sub-element. |
String |
toString() |
public UnivariateStats(String field)
field
- the value for the "field" attributepublic String getField()
public long getTotalFrequency()
Counts
sub-element.public void setTotalFrequency(long totalFrequency)
Counts
sub-element.totalFrequency
- the value of the "totalFreq" attributepublic Map<String,Long> getTestFailureCounts()
DataQualityAnalyzer
. Keys in the map
correspond to test names. Values in the map provide a count of the number of
test failures.public void setTestFailureCounts(Map<String,Long> testFailureCounts)
DataQualityAnalyzer
. Keys in the map
correspond to test names. Values in the map provide a count of the number of
test failures.testFailureCounts
- a mapping of test failures countspublic long getTestFailureCount(String testName)
DataQualityAnalyzer
.testName
- the name of the test that (potentially) failedpublic void setTestFailureCount(String testName, long failureCount)
DataQualityAnalyzer
.testName
- the name of the test that (potentially) failedfailureCount
- a count of the number of failures or zero if no failurespublic Long getMissingFrequency()
Counts
sub-element.public void setMissingFrequency(Long missingFrequency)
Counts
sub-element.missingFrequency
- the value of the "missingFreq" attributepublic AbstractNumericInfo<? extends Number> getNumericInfo()
NumericInfo
sub-element.NumericInfo
sub-element.public void setNumericInfo(AbstractNumericInfo<? extends Number> numericInfo)
NumericInfo
sub-element.numericInfo
- the value of the NumericInfo
sub-element.public Long getInvalidFrequency()
Counts
sub-element.public void setInvalidFrequency(Long invalidFrequency)
Counts
sub-element.invalidFrequency
- the value of the "invalidFreq" attributepublic Long getCardinality()
Counts
sub-element.public void setCardinality(Long cardinality)
Counts
sub-element.cardinality
- the value of the "cardinality" attributepublic DiscreteStatistics getDiscreteStatistics()
DiscrStats
sub-element.DiscrStats
sub-element.public void setDiscreteStatistics(DiscreteStatistics discreteStatistics)
DiscrStats
sub-element.discreteStatistics
- the value of the DiscrStats
sub-element.public AbstractContinuousStatistics<? extends Number> getContinuousStatistics()
ContStats
sub-element.ContStats
sub-element.public void setContinuousStatistics(AbstractContinuousStatistics<? extends Number> continuousStatistics)
ContStats
sub-element.continuousStatistics
- the value of the ContStats
sub-element.public void setMinValue(String minValue)
getNumericInfo()
.minValue
- minimum value (converted to a String)public String getMinValue()
getNumericInfo()
.public void setMaxValue(String maxValue)
getNumericInfo()
.maxValue
- maximum value (converted to a String)public String getMaxValue()
getNumericInfo()
.Copyright © 2020 Actian Corporation. All rights reserved.