java.lang.Object
com.pervasive.datarush.analytics.stats.UnivariateStats
Object representation of the PMML
UnivariateStats element.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnivariateStats(String field) Create a new UnivariateStats element for the given field. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the "cardinality" attribute of theCountssub-element.AbstractContinuousStatistics<? extends Number>Returns the value of theContStatssub-element.Returns the value of theDiscrStatssub-element.getField()Returns the value of the "field" attributeReturns the value of the "invalidFreq" attribute of theCountssub-element.Get the maximum value of the field.Get the minimum value of the field.Returns the value of the "missingFreq" attribute of theCountssub-element.AbstractNumericInfo<? extends Number>Returns the value of theNumericInfosub-element.longgetTestFailureCount(String testName) Returns the test failure count for the given test name.Returns a mapping of test failures counts.longReturns the value of the "totalFreq" attribute of theCountssub-element.voidsetCardinality(Long cardinality) Sets the value of the "cardinality" attribute of theCountssub-element.voidsetContinuousStatistics(AbstractContinuousStatistics<? extends Number> continuousStatistics) Sets the value of theContStatssub-element.voidsetDiscreteStatistics(DiscreteStatistics discreteStatistics) Sets the value of theDiscrStatssub-element.voidsetInvalidFrequency(Long invalidFrequency) Sets the value of the "invalidFreq" attribute of theCountssub-element.voidsetMaxValue(String maxValue) Set the maximum value of the field.voidsetMinValue(String minValue) Set the minimum value of the field.voidsetMissingFrequency(Long missingFrequency) Sets the value of the "missingFreq" attribute of theCountssub-element.voidsetNumericInfo(AbstractNumericInfo<? extends Number> numericInfo) Sets the value of theNumericInfosub-element.voidsetTestFailureCount(String testName, long failureCount) Sets the test failure count for the given test name.voidsetTestFailureCounts(Map<String, Long> testFailureCounts) Sets a mapping of test failures counts.voidsetTotalFrequency(long totalFrequency) Sets the value of the "totalFreq" attribute of theCountssub-element.toString()
-
Constructor Details
-
UnivariateStats
Create a new UnivariateStats element for the given field.- Parameters:
field- the value for the "field" attribute
-
-
Method Details
-
getField
Returns the value of the "field" attribute- Returns:
- the value of the "field" attribute
-
getTotalFrequency
public long getTotalFrequency()Returns the value of the "totalFreq" attribute of theCountssub-element.- Returns:
- the value of the "totalFreq" attribute
-
setTotalFrequency
public void setTotalFrequency(long totalFrequency) Sets the value of the "totalFreq" attribute of theCountssub-element.- Parameters:
totalFrequency- the value of the "totalFreq" attribute
-
getTestFailureCounts
Returns a mapping of test failures counts. Test failures are a PMML extension that captures the results of theDataQualityAnalyzer. Keys in the map correspond to test names. Values in the map provide a count of the number of test failures.- Returns:
- a mapping of test failures counts
-
setTestFailureCounts
Sets a mapping of test failures counts. Test failures are a PMML extension that captures the results of theDataQualityAnalyzer. Keys in the map correspond to test names. Values in the map provide a count of the number of test failures.- Parameters:
testFailureCounts- a mapping of test failures counts
-
getTestFailureCount
Returns the test failure count for the given test name. Test failures are a PMML extension that captures the results of theDataQualityAnalyzer.- Parameters:
testName- the name of the test that (potentially) failed- Returns:
- a count of the number of failures or zero if no failures
-
setTestFailureCount
Sets the test failure count for the given test name. Test failures are a PMML extension that captures the results of theDataQualityAnalyzer.- Parameters:
testName- the name of the test that (potentially) failedfailureCount- a count of the number of failures or zero if no failures
-
getMissingFrequency
Returns the value of the "missingFreq" attribute of theCountssub-element.- Returns:
- the value of the "missingFreq" attribute
-
setMissingFrequency
Sets the value of the "missingFreq" attribute of theCountssub-element.- Parameters:
missingFrequency- the value of the "missingFreq" attribute
-
getNumericInfo
Returns the value of theNumericInfosub-element.- Returns:
- the value of the
NumericInfosub-element.
-
setNumericInfo
Sets the value of theNumericInfosub-element.- Parameters:
numericInfo- the value of theNumericInfosub-element.
-
getInvalidFrequency
Returns the value of the "invalidFreq" attribute of theCountssub-element.- Returns:
- the value of the "invalidFreq" attribute
-
setInvalidFrequency
Sets the value of the "invalidFreq" attribute of theCountssub-element.- Parameters:
invalidFrequency- the value of the "invalidFreq" attribute
-
getCardinality
Returns the value of the "cardinality" attribute of theCountssub-element.- Returns:
- the value of the "cardinality" attribute
-
setCardinality
Sets the value of the "cardinality" attribute of theCountssub-element.- Parameters:
cardinality- the value of the "cardinality" attribute
-
getDiscreteStatistics
Returns the value of theDiscrStatssub-element.- Returns:
- the value of the
DiscrStatssub-element.
-
setDiscreteStatistics
Sets the value of theDiscrStatssub-element.- Parameters:
discreteStatistics- the value of theDiscrStatssub-element.
-
getContinuousStatistics
Returns the value of theContStatssub-element.- Returns:
- the value of the
ContStatssub-element.
-
setContinuousStatistics
public void setContinuousStatistics(AbstractContinuousStatistics<? extends Number> continuousStatistics) Sets the value of theContStatssub-element.- Parameters:
continuousStatistics- the value of theContStatssub-element.
-
setMinValue
Set the minimum value of the field. This is only useful for non-numeric data type. Numeric types support more detailed numeric information that can be obtained withgetNumericInfo().- Parameters:
minValue- minimum value (converted to a String)
-
getMinValue
Get the minimum value of the field. This is only useful for non-numeric data type. Numeric types support more detailed numeric information that can be obtained withgetNumericInfo().- Returns:
- minimum value (converted to String)
-
setMaxValue
Set the maximum value of the field. This is only useful for non-numeric data type. Numeric types support more detailed numeric information that can be obtained withgetNumericInfo().- Parameters:
maxValue- maximum value (converted to a String)
-
getMaxValue
Get the maximum value of the field. This is only useful for non-numeric data type. Numeric types support more detailed numeric information that can be obtained withgetNumericInfo().- Returns:
- maximum value (converted to String)
-
toString
-