public enum FeatureType extends Enum<FeatureType>
DecisionTree.| Modifier and Type | Method and Description |
|---|---|
static FeatureType[] |
allNominal(int numFeatures)
Creates an array that denotes the type of a feature at a given feature
index.
|
static FeatureType[] |
allNumerical(int numFeatures)
Creates an array that denotes the type of a feature at a given feature
index.
|
boolean |
isNominal() |
boolean |
isNumerical() |
static FeatureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FeatureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FeatureType NOMINAL
public static final FeatureType NUMERICAL
public static FeatureType[] values()
for (FeatureType c : FeatureType.values()) System.out.println(c);
public static FeatureType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isNumerical()
public boolean isNominal()
public static FeatureType[] allNominal(int numFeatures)
numFeatures - the number of features.public static FeatureType[] allNumerical(int numFeatures)
numFeatures - the number of features.Copyright © 2016. All rights reserved.