Package com.bayesserver.data.discovery
Enum DiscretizationMethod
- java.lang.Object
-
- java.lang.Enum<DiscretizationMethod>
-
- com.bayesserver.data.discovery.DiscretizationMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<DiscretizationMethod>
public enum DiscretizationMethod extends Enum<DiscretizationMethod>
The method (algorithm) to use for discretization of continuous data.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLUSTERING
Discretize using a probabilistic clustering algorithm.EQUAL_FREQUENCIES
Discretize such that each bin contains a similar number of items.EQUAL_INTERVALS
Discretize using equal width intervals.NONE
Do not discretize.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DiscretizationMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static DiscretizationMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DiscretizationMethod NONE
Do not discretize.
-
CLUSTERING
public static final DiscretizationMethod CLUSTERING
Discretize using a probabilistic clustering algorithm.
-
EQUAL_INTERVALS
public static final DiscretizationMethod EQUAL_INTERVALS
Discretize using equal width intervals.
-
EQUAL_FREQUENCIES
public static final DiscretizationMethod EQUAL_FREQUENCIES
Discretize such that each bin contains a similar number of items.
-
-
Method Detail
-
values
public static DiscretizationMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DiscretizationMethod c : DiscretizationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiscretizationMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-