- java.lang.Object
-
- com.pervasive.datarush.analytics.stats.UnivariateStats
-
public final class UnivariateStats extends Object
Object representation of the PMMLUnivariateStatselement.- See Also:
PMMLSummaryStatisticsModel
-
-
Constructor Summary
Constructors Constructor Description UnivariateStats(String field)Create a new UnivariateStats element for the given field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCardinality()Returns the value of the "cardinality" attribute of theCountssub-element.AbstractContinuousStatistics<? extends Number>getContinuousStatistics()Returns the value of theContStatssub-element.DiscreteStatisticsgetDiscreteStatistics()Returns the value of theDiscrStatssub-element.StringgetField()Returns the value of the "field" attributeLonggetInvalidFrequency()Returns the value of the "invalidFreq" attribute of theCountssub-element.StringgetMaxValue()Get the maximum value of the field.StringgetMinValue()Get the minimum value of the field.LonggetMissingFrequency()Returns the value of the "missingFreq" attribute of theCountssub-element.AbstractNumericInfo<? extends Number>getNumericInfo()Returns the value of theNumericInfosub-element.longgetTestFailureCount(String testName)Returns the test failure count for the given test name.Map<String,Long>getTestFailureCounts()Returns a mapping of test failures counts.longgetTotalFrequency()Returns 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.StringtoString()
-
-
-
Constructor Detail
-
UnivariateStats
public UnivariateStats(String field)
Create a new UnivariateStats element for the given field.- Parameters:
field- the value for the "field" attribute
-
-
Method Detail
-
getField
public String 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
public Map<String,Long> 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
public void setTestFailureCounts(Map<String,Long> testFailureCounts)
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
public long getTestFailureCount(String testName)
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
public void setTestFailureCount(String testName, long failureCount)
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
public Long getMissingFrequency()
Returns the value of the "missingFreq" attribute of theCountssub-element.- Returns:
- the value of the "missingFreq" attribute
-
setMissingFrequency
public void setMissingFrequency(Long missingFrequency)
Sets the value of the "missingFreq" attribute of theCountssub-element.- Parameters:
missingFrequency- the value of the "missingFreq" attribute
-
getNumericInfo
public AbstractNumericInfo<? extends Number> getNumericInfo()
Returns the value of theNumericInfosub-element.- Returns:
- the value of the
NumericInfosub-element.
-
setNumericInfo
public void setNumericInfo(AbstractNumericInfo<? extends Number> numericInfo)
Sets the value of theNumericInfosub-element.- Parameters:
numericInfo- the value of theNumericInfosub-element.
-
getInvalidFrequency
public Long getInvalidFrequency()
Returns the value of the "invalidFreq" attribute of theCountssub-element.- Returns:
- the value of the "invalidFreq" attribute
-
setInvalidFrequency
public void setInvalidFrequency(Long invalidFrequency)
Sets the value of the "invalidFreq" attribute of theCountssub-element.- Parameters:
invalidFrequency- the value of the "invalidFreq" attribute
-
getCardinality
public Long getCardinality()
Returns the value of the "cardinality" attribute of theCountssub-element.- Returns:
- the value of the "cardinality" attribute
-
setCardinality
public void setCardinality(Long cardinality)
Sets the value of the "cardinality" attribute of theCountssub-element.- Parameters:
cardinality- the value of the "cardinality" attribute
-
getDiscreteStatistics
public DiscreteStatistics getDiscreteStatistics()
Returns the value of theDiscrStatssub-element.- Returns:
- the value of the
DiscrStatssub-element.
-
setDiscreteStatistics
public void setDiscreteStatistics(DiscreteStatistics discreteStatistics)
Sets the value of theDiscrStatssub-element.- Parameters:
discreteStatistics- the value of theDiscrStatssub-element.
-
getContinuousStatistics
public AbstractContinuousStatistics<? extends Number> 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
public void setMinValue(String minValue)
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
public 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
public void setMaxValue(String maxValue)
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
public 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)
-
-