public enum ArffSummaryNumericMetric extends java.lang.Enum<ArffSummaryNumericMetric>
Enum Constant and Description |
---|
COUNT |
FIRSTQUARTILE |
MAX |
MEAN |
MEDIAN |
MIN |
MISSING |
STDDEV |
SUM |
SUMSQ |
THIRDQUARTILE |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
makeAttributeValue(double value)
Makes the internal encoded version of this metric given it's value as a
double
|
java.lang.String |
toString() |
double |
toValue(java.lang.String v,
java.lang.String name)
Extracts the value of the metric from the string representation
|
abstract double |
valueFromAttribute(weka.core.Attribute att)
Extracts the value of this particular metric from the summary Attribute
|
static ArffSummaryNumericMetric |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArffSummaryNumericMetric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArffSummaryNumericMetric COUNT
public static final ArffSummaryNumericMetric SUM
public static final ArffSummaryNumericMetric SUMSQ
public static final ArffSummaryNumericMetric MIN
public static final ArffSummaryNumericMetric MAX
public static final ArffSummaryNumericMetric MISSING
public static final ArffSummaryNumericMetric MEAN
public static final ArffSummaryNumericMetric STDDEV
public static final ArffSummaryNumericMetric FIRSTQUARTILE
public static final ArffSummaryNumericMetric MEDIAN
public static final ArffSummaryNumericMetric THIRDQUARTILE
public static ArffSummaryNumericMetric[] values()
for (ArffSummaryNumericMetric c : ArffSummaryNumericMetric.values()) System.out.println(c);
public static ArffSummaryNumericMetric valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract double valueFromAttribute(weka.core.Attribute att)
att
- the summary attribute to extract the metric frompublic abstract java.lang.String makeAttributeValue(double value)
value
- the value of the metricpublic java.lang.String toString()
toString
in class java.lang.Enum<ArffSummaryNumericMetric>
public double toValue(java.lang.String v, java.lang.String name)
v
- the string representationname
- the name of the attribute that the metric belongs to