|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.ga.watchmaker.cd.tool.DescriptionUtils
public final class DescriptionUtils
Utility functions to handle Attribute's description strings.
Method Summary | |
---|---|
static String |
createNominalDescription(Collection<String> values)
Create a nominal description from the possible values. |
static String |
createNumericalDescription(double min,
double max)
Create a numerical attribute description. |
static void |
extractNominalValues(String description,
Collection<String> target)
Extract all available values from the description. |
static double[] |
extractNumericalRange(String description)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String createNumericalDescription(double min, double max)
min
- max
- public static String createNominalDescription(Collection<String> values)
values
- public static double[] extractNumericalRange(String description)
public static void extractNominalValues(String description, Collection<String> target)
description
- target
- the extracted values will be added to this collection. It
will not be cleared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |