public enum LearningPrinciple extends Enum<LearningPrinciple>
LogGenDisMixFunction
Enum Constant and Description |
---|
MAP
Maximum a posteriori.
|
MCL
Maximum conditional likelihood.
|
ML
Maximum Likelihood.
|
MSP
Maximum supervised posterior.
|
Modifier and Type | Field and Description |
---|---|
static int |
CONDITIONAL_LIKELIHOOD_INDEX
This constant is the array index of the weighting factor for the conditional likelihood.
|
static int |
LIKELIHOOD_INDEX
This constant is the array index of the weighting factor for the likelihood.
|
static int |
PRIOR_INDEX
This constant is the array index of the weighting factor for the prior.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
checkWeights(double[] weights)
This method checks the values of the
weights array. |
static double[] |
getBeta(LearningPrinciple key)
This method returns the standard weights for a predefined key.
|
static LearningPrinciple |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LearningPrinciple[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LearningPrinciple ML
public static final LearningPrinciple MAP
public static final LearningPrinciple MCL
public static final LearningPrinciple MSP
public static final int CONDITIONAL_LIKELIHOOD_INDEX
getBeta(LearningPrinciple)
,
Constant Field Valuespublic static final int LIKELIHOOD_INDEX
getBeta(LearningPrinciple)
,
Constant Field Valuespublic static final int PRIOR_INDEX
getBeta(LearningPrinciple)
,
Constant Field Valuespublic static LearningPrinciple[] values()
for (LearningPrinciple c : LearningPrinciple.values()) System.out.println(c);
public static LearningPrinciple 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 static double[] getBeta(LearningPrinciple key)
public static double[] checkWeights(double[] weights) throws IllegalArgumentException
weights
array. If everything is okay it returns a deep copy
of the array, otherwise it throws an exceptionweights
- and array of length 3 with non-negative entries that sum to 1IllegalArgumentException
- if the weights array is not correct