Class TreeQuery


  • public final class TreeQuery
    extends Object
    Contains methods to determine properties of a Bayesian network or Dynamic Bayesian network when converted to a tree for inference.
    • Method Detail

      • query

        public static TreeQueryOutput query​(Network network,
                                            QueryDistributionCollection queryDistributions,
                                            Evidence evidence,
                                            TreeQueryOptions queryOptions)
        Calculates properties of a Bayesian network or Dynamic Bayesian network when converted to a tree for inference.

        This is done without requiring the memory to actually perform inference, and so can be useful to test whether exact inference is feasible on a network, or determine memory requirements.

        This can be done while taking into account any evidence currently set, and the particular queries that are being requested.

        Parameters:
        network - The Bayesian network or Dynamic Bayesian network.
        queryDistributions - The distributions being queried.
        evidence - Any evidence.
        queryOptions - Options which affect how the query is performed.
        Returns:
        Information about the tree, such as tree width.