public interface StatisticsSettings
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String s)
Adds an attribute name to a list of attributes which statistics should be calculated.
|
void |
addLeftInterval(java.lang.Double maxValue) |
void |
addLeftInterval(java.lang.String attributeName,
java.lang.Double maxValue) |
void |
addLeftIntervalAsPercent(java.lang.Integer percent) |
void |
addLeftIntervalAsPercent(java.lang.String attributeName,
java.lang.Integer percent) |
void |
addRightInterval(java.lang.Double minValue) |
void |
addRightInterval(java.lang.String attributeName,
java.lang.Double minValue) |
void |
addRightIntervalAsPercent(java.lang.Integer percent) |
void |
addRightIntervalAsPercent(java.lang.String attributeName,
java.lang.Integer percent) |
void |
addWhere(java.lang.String attribute,
java.lang.String where)
Adds attribute name and a where value to a list af attributes which statistics should be calculated.
|
void |
clearWhere()
Clears where map.
|
boolean |
getApproximateQuantiles() |
java.util.List |
getAttributes()
Returns list of attribute names (as String objects) that should be calculated.
|
boolean |
getCalculateCategoricalHistogram()
Returns whether discrete statistics should be calculated.
|
boolean |
getCalculateCorrelationRatio() |
boolean |
getCalculateCramerCorrelation() |
boolean |
getCalculateDetailed()
Returns whether detailed statistics should be calculated.
|
boolean |
getCalculateNumericalHistogram()
Returns whether continuous statistics should be calculated.
|
boolean |
getCalculatePearsonCorrelation() |
boolean |
getCalculateQuantiles()
Returns whether quantiles should be calculated.
|
boolean |
getCalculateUniformityIndexes() |
boolean |
getCalcutateBasic() |
NamePair[] |
getCorrelationPairs() |
Interval[] |
getEffectiveIntervals(java.lang.String attributeName) |
java.lang.Double |
getEffectiveLeftInterval(java.lang.String attributeName) |
java.lang.Integer |
getEffectiveLeftIntervalAsPercent(java.lang.String attributeName) |
int |
getEffectiveNumberOfIntervals(java.lang.String attributeName) |
java.lang.Double |
getEffectiveRightInterval(java.lang.String attributeName) |
java.lang.Integer |
getEffectiveRightIntervalAsPercent(java.lang.String attributeName) |
boolean |
getExactLimitedDiscrete() |
Interval[] |
getIntervals() |
Interval[] |
getIntervals(java.lang.String attributeName) |
java.lang.Double |
getLeftInterval() |
java.lang.Double |
getLeftInterval(java.lang.String attributeName) |
java.lang.Integer |
getLeftIntervalAsPercent() |
java.lang.Integer |
getLeftIntervalAsPercent(java.lang.String attributeName) |
int |
getMaxValuesCount()
Returns maximum values count for discrete attributes.
|
int |
getNumberOfIntervals()
Returns number of itervals to be calculated.
|
int |
getNumberOfIntervals(java.lang.String attributeName)
Returns number of itervals to be calculated for specified attribute.
|
java.lang.Object |
getPositiveTargetValue()
Returns positive value of a target attribute for which statistics should be calculated.
|
boolean |
getRandomize() |
boolean |
getRecalculate() |
java.lang.Double |
getRightInterval() |
java.lang.Double |
getRightInterval(java.lang.String attributeName) |
java.lang.Integer |
getRightIntervalAsPercent() |
java.lang.Integer |
getRightIntervalAsPercent(java.lang.String attributeName) |
java.lang.String |
getTargetName()
Returns name of a target attribute for which statistics should be calculated.
|
AttributeType |
getTargetType()
Gets the type of target attribute.
|
java.lang.String |
getWeightName() |
java.util.Map |
getWhere()
Returns a map containing attribute name as a key (String), and a String with a where value.
|
java.util.Map |
getWhereList()
Returns a map containing attribute name as a key (String), and a List of Strings with a 'where'
statements.
|
void |
removeAttribute(java.lang.String s)
Remove an attribute name from a list of attributes that should be calculated.
|
void |
setApproximateQuantiles(boolean b) |
void |
setCalculateCategoricalHistogram(boolean b)
Sets whether discrete statistics should be calculated.
|
void |
setCalculateCorrelationRatio(boolean b) |
void |
setCalculateCorrelations(boolean b) |
void |
setCalculateCramerCorrelation(boolean b) |
void |
setCalculateDetailed(boolean b)
Sets whether detailed statistics should be calculated.
|
void |
setCalculateNumericalHistogram(boolean b)
Sets whether continuous statistics should be calculated.
|
void |
setCalculatePearsonCorrelation(boolean b) |
void |
setCalculateQuantiles(boolean b)
Sets whether quantiles should be calculated.
|
void |
setCalculateUniformityIndexes(boolean b) |
void |
setCalcutateBasic(boolean b) |
void |
setCorrelationPairs(java.lang.String[] s1,
java.lang.String[] s2) |
void |
setExactLimitedDiscrete(boolean exactDiscreteExceeded)
Sets whether to choose the most frequent values when maxvalues count is exceeded.
|
void |
setIntervals(Interval[] intervals) |
void |
setIntervals(java.lang.String attributeName,
Interval[] intervals) |
void |
setMaxValuesCount(int i)
Sets maximum values count for discrete attributes.
|
void |
setNumberOfIntervals(int i)
Sets number of itervals to be calculated.
|
void |
setNumberOfIntervals(java.lang.String attributeName,
java.lang.Integer i)
Sets number of itervals to be calculated for specified attribute.
|
void |
setPositiveTargetValue(java.lang.Object category)
Sets positive value of a target attribute for which statistics should be calculated.
|
void |
setRandomize(boolean randomize) |
void |
setRecalculate(boolean recalculate)
Sets whether statistics should be recalculated.
|
void |
setTargetName(java.lang.String targetName)
Sets name of a target attribute for which statistics should be calculated.
|
void |
setTargetType(AttributeType type)
Sets the type of target attribute.
|
void |
setWeightName(java.lang.String weightName) |
boolean getCalcutateBasic()
void setCalcutateBasic(boolean b)
boolean getCalculateDetailed()
void setCalculateDetailed(boolean b)
b - true if detailed statics should be calculated.boolean getCalculateQuantiles()
boolean getApproximateQuantiles()
void setCalculateQuantiles(boolean b)
b - true if quantiles should be calculated.void setApproximateQuantiles(boolean b)
boolean getCalculateCategoricalHistogram()
void setCalculateCategoricalHistogram(boolean b)
b - true if discrete statistics should be calculated.boolean getCalculateNumericalHistogram()
void setCalculateNumericalHistogram(boolean b)
b - true if continuous statistics should be calculated.void setCalculateCorrelations(boolean b)
boolean getCalculatePearsonCorrelation()
void setCalculatePearsonCorrelation(boolean b)
boolean getCalculateCramerCorrelation()
void setCalculateCramerCorrelation(boolean b)
boolean getCalculateCorrelationRatio()
void setCalculateCorrelationRatio(boolean b)
boolean getCalculateUniformityIndexes()
void setCalculateUniformityIndexes(boolean b)
int getNumberOfIntervals()
int getNumberOfIntervals(java.lang.String attributeName)
attributeName - name of the attribute.int getEffectiveNumberOfIntervals(java.lang.String attributeName)
void setNumberOfIntervals(int i)
i - number of itervals to be calculated.void setNumberOfIntervals(java.lang.String attributeName,
java.lang.Integer i)
attributeName - name of the attribute.i - number of itervals to be calculated.java.lang.Double getLeftInterval(java.lang.String attributeName)
java.lang.Double getLeftInterval()
java.lang.Double getEffectiveLeftInterval(java.lang.String attributeName)
java.lang.Double getRightInterval(java.lang.String attributeName)
java.lang.Double getRightInterval()
java.lang.Double getEffectiveRightInterval(java.lang.String attributeName)
void addLeftInterval(java.lang.String attributeName,
java.lang.Double maxValue)
void addLeftInterval(java.lang.Double maxValue)
void addRightInterval(java.lang.String attributeName,
java.lang.Double minValue)
void addRightInterval(java.lang.Double minValue)
java.lang.Integer getLeftIntervalAsPercent(java.lang.String attributeName)
java.lang.Integer getLeftIntervalAsPercent()
java.lang.Integer getEffectiveLeftIntervalAsPercent(java.lang.String attributeName)
java.lang.Integer getRightIntervalAsPercent(java.lang.String attributeName)
java.lang.Integer getRightIntervalAsPercent()
java.lang.Integer getEffectiveRightIntervalAsPercent(java.lang.String attributeName)
void addLeftIntervalAsPercent(java.lang.String attributeName,
java.lang.Integer percent)
void addLeftIntervalAsPercent(java.lang.Integer percent)
void addRightIntervalAsPercent(java.lang.String attributeName,
java.lang.Integer percent)
void addRightIntervalAsPercent(java.lang.Integer percent)
void setIntervals(java.lang.String attributeName,
Interval[] intervals)
void setIntervals(Interval[] intervals)
Interval[] getIntervals(java.lang.String attributeName)
Interval[] getIntervals()
Interval[] getEffectiveIntervals(java.lang.String attributeName)
java.util.List getAttributes()
void addAttribute(java.lang.String s)
s - attribute namevoid removeAttribute(java.lang.String s)
s - attribute namejava.util.Map getWhere()
java.util.Map getWhereList()
void addWhere(java.lang.String attribute,
java.lang.String where)
attribute - attribute namewhere - where valuevoid clearWhere()
int getMaxValuesCount()
void setMaxValuesCount(int i)
i - maximum values count for discrete attributes.java.lang.String getTargetName()
void setTargetName(java.lang.String targetName)
targetName - name of a target attribute.java.lang.String getWeightName()
void setWeightName(java.lang.String weightName)
java.lang.Object getPositiveTargetValue()
void setPositiveTargetValue(java.lang.Object category)
positive - value of a target attribute.AttributeType getTargetType()
void setTargetType(AttributeType type)
type - type of target attribute.boolean getRecalculate()
void setRecalculate(boolean recalculate)
recalculate - true if statistics should be recalculated.boolean getRandomize()
void setRandomize(boolean randomize)
boolean getExactLimitedDiscrete()
void setExactLimitedDiscrete(boolean exactDiscreteExceeded)
void setCorrelationPairs(java.lang.String[] s1,
java.lang.String[] s2)
NamePair[] getCorrelationPairs()