public class SimpleAggregate extends AbstractMetaEvaluationStatisticsExporter implements AggregatedEvaluationStatisticsExporter
Modifier and Type | Field and Description |
---|---|
protected String |
m_AggregationKeys
the aggregation keys.
|
protected boolean |
m_SkipCount
whether to skip the count.
|
protected boolean |
m_SkipMean
whether to skip the mean.
|
protected boolean |
m_SkipStdDev
whether to skip the stdev.
|
protected String |
m_SuffixCount
the count suffix.
|
protected String |
m_SuffixMean
the mean suffix.
|
protected String |
m_SuffixStdDev
the stdev suffix.
|
static String |
SUFFIX_COUNT
the suffix for the count.
|
static String |
SUFFIX_MEAN
the suffix for the mean.
|
static String |
SUFFIX_STDEV
the suffix for the stdev.
|
m_Exporter
m_Debug, m_LogListeners
Constructor and Description |
---|
SimpleAggregate() |
Modifier and Type | Method and Description |
---|---|
List<EvaluationStatistics> |
aggregate(List<EvaluationStatistics> stats)
Aggregates the statistics and returns these.
|
String |
aggregationKeysTipText()
Describes this property.
|
protected EvaluationStatistics |
doAggregate(List<EvaluationStatistics> stats)
Calculates the actual aggregates.
|
protected String |
doExport(List<EvaluationStatistics> stats)
Exports the statistics.
|
String |
getAggregationKeys()
Returns the blank-separated list of keys used for aggregating.
|
protected String |
getDefaultAggregationKeys()
Returns the default keys used for aggregation.
|
protected EvaluationStatisticsExporter |
getDefaultExporter()
Returns the default exporter to use.
|
protected String |
getDefaultSuffixCount()
Returns the default suffix for the count.
|
protected String |
getDefaultSuffixMean()
Returns the default suffix for the mean.
|
protected String |
getDefaultSuffixStdDev()
Returns the default suffix for the stddev.
|
String[] |
getOptions()
Returns the options.
|
boolean |
getSkipCount()
Returns whether to skip the count.
|
boolean |
getSkipMean()
Returns whether to skip the mean.
|
boolean |
getSkipStdDev()
Returns whether to skip the stdDev.
|
String |
getSuffixCount()
Returns the suffix for the count.
|
String |
getSuffixMean()
Returns the suffix for the mean.
|
String |
getSuffixStdDev()
Returns the suffix for the stddev.
|
String |
globalInfo()
Description to be displayed in the GUI.
|
Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration of all the available options..
|
void |
setAggregationKeys(String keys)
Sets the blank-separated list of keys to use for aggregating.
|
void |
setOptions(String[] options)
Sets the options.
|
void |
setSkipCount(boolean value)
Sets whether to skip the count.
|
void |
setSkipMean(boolean value)
Sets whether to skip the mean.
|
void |
setSkipStdDev(boolean value)
Sets whether to skip the stdDev.
|
void |
setSuffixCount(String value)
Sets the suffix for the count.
|
void |
setSuffixMean(String value)
Sets the suffix for the mean.
|
void |
setSuffixStdDev(String value)
Sets the suffix for the stddev.
|
String |
skipCountTipText()
Describes this property.
|
String |
skipMeanTipText()
Describes this property.
|
String |
skipStdDevTipText()
Describes this property.
|
String |
suffixCountTipText()
Describes this property.
|
String |
suffixMeanTipText()
Describes this property.
|
String |
suffixStdDevTipText()
Describes this property.
|
addLogListener, exporterTipText, getExporter, removeLogListener, setExporter
export
debug, getLogListeners, handleException, log
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
export
addLogListener, log, removeLogListener
public static final String SUFFIX_COUNT
public static final String SUFFIX_MEAN
public static final String SUFFIX_STDEV
protected String m_AggregationKeys
protected String m_SuffixCount
protected String m_SuffixMean
protected String m_SuffixStdDev
protected boolean m_SkipCount
protected boolean m_SkipMean
protected boolean m_SkipStdDev
public String globalInfo()
globalInfo
in class AbstractEvaluationStatisticsExporter
protected EvaluationStatisticsExporter getDefaultExporter()
getDefaultExporter
in class AbstractMetaEvaluationStatisticsExporter
protected String getDefaultAggregationKeys()
public void setAggregationKeys(String keys)
setAggregationKeys
in interface AggregatedEvaluationStatisticsExporter
keys
- the keys (blank-separated)public String getAggregationKeys()
getAggregationKeys
in interface AggregatedEvaluationStatisticsExporter
public String aggregationKeysTipText()
aggregationKeysTipText
in interface AggregatedEvaluationStatisticsExporter
protected String getDefaultSuffixCount()
public void setSuffixCount(String value)
value
- the suffixpublic String getSuffixCount()
public String suffixCountTipText()
protected String getDefaultSuffixMean()
public void setSuffixMean(String value)
value
- the suffixpublic String getSuffixMean()
public String suffixMeanTipText()
protected String getDefaultSuffixStdDev()
public void setSuffixStdDev(String value)
value
- the suffixpublic String getSuffixStdDev()
public String suffixStdDevTipText()
public void setSkipCount(boolean value)
value
- true if to skippublic boolean getSkipCount()
public String skipCountTipText()
public void setSkipMean(boolean value)
value
- true if to skippublic boolean getSkipMean()
public String skipMeanTipText()
public void setSkipStdDev(boolean value)
value
- true if to skippublic boolean getSkipStdDev()
public String skipStdDevTipText()
public Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class AbstractMetaEvaluationStatisticsExporter
public void setOptions(String[] options) throws Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class AbstractMetaEvaluationStatisticsExporter
options
- the options to parseException
- if parsing failspublic String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class AbstractMetaEvaluationStatisticsExporter
protected EvaluationStatistics doAggregate(List<EvaluationStatistics> stats)
stats
- the statistics to aggregatepublic List<EvaluationStatistics> aggregate(List<EvaluationStatistics> stats)
aggregate
in interface AggregatedEvaluationStatisticsExporter
stats
- the statistics to aggregateprotected String doExport(List<EvaluationStatistics> stats)
doExport
in class AbstractEvaluationStatisticsExporter
stats
- the statistics to exportCopyright © 2017. All Rights Reserved.