Enum 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 called 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 Detail

      • NONE

        public static final EvidenceType NONE
        No evidence has been set. I.e. the variable's value is unknown/missing/null.
      • HARD

        public static final EvidenceType HARD
        The value for the variable is known, such as the specific state of a discrete node.
      • SOFT

        public 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.

      • TEMPORAL

        public static final EvidenceType TEMPORAL
        The variable has evidence at one or more times.
    • Method Detail

      • values

        public 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
      • valueOf

        public 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