Package com.bayesserver
Enum NodeDistributionKind
- java.lang.Object
-
- java.lang.Enum<NodeDistributionKind>
-
- com.bayesserver.NodeDistributionKind
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeDistributionKind>
public enum NodeDistributionKind extends Enum<NodeDistributionKind>
The kind of distribution, such as a standard Probability or Experience table.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPERIENCE
A distribution which contains experience for the node, used in online learning.FADING
A table which contains fading values used in online learning.PROBABILITY
The standard kind of probability distribution found in Bayesian networks.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeDistributionKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeDistributionKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROBABILITY
public static final NodeDistributionKind PROBABILITY
The standard kind of probability distribution found in Bayesian networks.
-
EXPERIENCE
public static final NodeDistributionKind EXPERIENCE
A distribution which contains experience for the node, used in online learning.Once an experience table is combined with the probability of a discrete node, this creates a a Dirichlet distribution which can be used in online learning.
-
FADING
public static final NodeDistributionKind FADING
A table which contains fading values used in online learning. A value of 1 in the table represents no fading. Fading can be used to decrease the importance of previous experience.
-
-
Method Detail
-
values
public static NodeDistributionKind[] 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 (NodeDistributionKind c : NodeDistributionKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeDistributionKind 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
-
-