Package com.bayesserver.inference
Enum EvidenceType
- java.lang.Object
- 
- java.lang.Enum<EvidenceType>
- 
- com.bayesserver.inference.EvidenceType
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<EvidenceType>
 
 public enum EvidenceType extends Enum<EvidenceType> The type of evidence for a variable. When a variable is set to a specific value, this is calledHardevidence. 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 SummaryEnum Constants Enum Constant Description HARDThe value for the variable is known, such as the specific state of a discrete node.NONENo evidence has been set.SOFTA distribution is used to indicate evidence that is uncertain.TEMPORALThe variable has evidence at one or more times.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static EvidenceTypevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
NONEpublic static final EvidenceType NONE No evidence has been set. I.e. the variable's value is unknown/missing/null.
 - 
HARDpublic static final EvidenceType HARD The value for the variable is known, such as the specific state of a discrete node.
 - 
SOFTpublic static final EvidenceType SOFT A distribution is used to indicate evidence that is uncertain. 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.
 - 
TEMPORALpublic static final EvidenceType TEMPORAL The variable has evidence at one or more times.
 
- 
 - 
Method Detail- 
valuespublic static EvidenceType[] 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 (EvidenceType c : EvidenceType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static EvidenceType 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 name
- NullPointerException- if the argument is null
 
 
- 
 
-