public enum EvidenceType extends Enum<EvidenceType>
Hard
evidence.
For a discrete variable with a number of possible states, soft evidence implies that we have some information about the configuration of the states, but we are uncertain of the exact state. For example if a node has 3 states and we are sure that the last state is not possible, we can have evidence of the form {1, 1, 0}. We can also assign a distribution such as {0.3,0.4, 0.3}.
See Evidence.setStates(Variable, double[])
for information on how to set this type of evidence.
Enum Constant and Description |
---|
HARD
The value for the variable is known, such as the specific state of a discrete node.
|
NONE
No evidence has been set.
|
SOFT
A distribution is used to indicate evidence that is uncertain.
|
TEMPORAL
The variable has evidence at one or more times.
|
Modifier and Type | Method and Description |
---|---|
static EvidenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvidenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvidenceType NONE
public static final EvidenceType HARD
public static final EvidenceType SOFT
See Evidence.setStates(Variable, double[])
for information on how to set this type of evidence.
public static final EvidenceType TEMPORAL
public static EvidenceType[] values()
for (EvidenceType c : EvidenceType.values()) System.out.println(c);
public static EvidenceType 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 nullCopyright © 2023. All rights reserved.