Package com.bayesserver
Class ParameterCounter
- java.lang.Object
-
- com.bayesserver.ParameterCounter
-
public final class ParameterCounter extends Object
Contains methods to determine the number of parameters in a Bayesian network or distribution.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetParameterCount(Network network)Gets the number of parameters in a Bayesian network.static doublegetParameterCount(Network network, ParameterCountOptions options)Gets the number of parameters in a Bayesian network.static doublegetParameterCount(Node node, int order)Gets the parameter count for an individual node distribution.static doublegetParameterCount(Node node, NodeDistributionKey key)Gets the parameter count for an individual node distribution.
-
-
-
Method Detail
-
getParameterCount
public static double getParameterCount(Network network)
Gets the number of parameters in a Bayesian network.- Parameters:
network- The network.- Returns:
- The number of parameters.
- Throws:
NullPointerException- Thrown if [network] is null.
-
getParameterCount
public static double getParameterCount(Network network, ParameterCountOptions options)
Gets the number of parameters in a Bayesian network.- Parameters:
network- The network.options- Options governing the parameter count.- Returns:
- The number of parameters.
- Throws:
NullPointerException- Thrown if [network] is null.
-
getParameterCount
public static double getParameterCount(Node node, int order)
Gets the parameter count for an individual node distribution.- Parameters:
node- The node that owns the distribution.order- The distribution order. Always zero for non temporal nodes.- Returns:
- The parameter count.
-
getParameterCount
public static double getParameterCount(Node node, NodeDistributionKey key)
Gets the parameter count for an individual node distribution.- Parameters:
node- The node that owns the distribution.key- The distribution key. Order is always zero for non temporal nodes.- Returns:
- The parameter count.
-
-