Enum InitializationMethod
- java.lang.Object
-
- java.lang.Enum<InitializationMethod>
-
- com.bayesserver.learning.parameters.InitializationMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<InitializationMethod>
public enum InitializationMethod extends Enum<InitializationMethod>
Determines the algorithm used to initialize distributions during parameter learning.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
Automatically select the best algorithm.CLUSTERING
An iterative clustering algorithm is used, which picks cases that are different from each other.SAMPLING
Cases are selected at random to initialize distributions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InitializationMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static InitializationMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final InitializationMethod AUTO
Automatically select the best algorithm.
-
SAMPLING
public static final InitializationMethod SAMPLING
Cases are selected at random to initialize distributions.
-
CLUSTERING
public static final InitializationMethod CLUSTERING
An iterative clustering algorithm is used, which picks cases that are different from each other.
-
-
Method Detail
-
values
public static InitializationMethod[] 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 (InitializationMethod c : InitializationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InitializationMethod 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
-
-