Class Impact


  • public final class Impact
    extends Object
    Analyzes the impact of evidence.
    • Method Detail

      • calculate

        public static ImpactOutput calculate​(Network network,
                                             Variable hypothesisVariable,
                                             State hypothesisState,
                                             Evidence evidence,
                                             List<Variable> evidenceToAnalyse,
                                             ImpactOptions options)
                                      throws InconsistentEvidenceException
        Analyzes the impact of sets of evidence on a hypothesis state and its variable.
        Parameters:
        network - The network
        hypothesisVariable - The hypothesis variable to be analyzed
        hypothesisState - The state of the hypothesis variable to be analyzed
        evidence - The evidence, subsets of which will be analyzed.
        evidenceToAnalyse - Which evidence variables to analyze.
        options - Options affecting how the calculations are performed.
        Throws:
        InconsistentEvidenceException
      • calculate

        public static ImpactOutput calculate​(Network network,
                                             Variable hypothesisVariable,
                                             Evidence evidence,
                                             List<Variable> evidenceToAnalyse,
                                             ImpactOptions options)
                                      throws InconsistentEvidenceException
        Analyzes the impact of sets of evidence on a hypothesis state and its variable.
        Parameters:
        network - The network
        hypothesisVariable - The hypothesis variable to be analyzed
        evidence - The evidence, subsets of which will be analyzed.
        evidenceToAnalyse - Which evidence variables to analyze.
        options - Options affecting how the calculations are performed.
        Throws:
        InconsistentEvidenceException
      • calculate

        public static ImpactOutput calculate​(Network network,
                                             Distribution hypothesisQuery,
                                             Evidence evidence,
                                             List<Variable> evidenceToAnalyse,
                                             ImpactOptions options)
                                      throws InconsistentEvidenceException
        Analyzes the impact of sets of evidence on the resulting probability distribution of a hypothesis variable.
        Parameters:
        network - The network
        hypothesisQuery - The hypothesis query to be analyzed
        evidence - The evidence, subsets of which will be analyzed.
        evidenceToAnalyse - Which evidence variables to analyze.
        options - Options affecting how the calculations are performed.
        Throws:
        InconsistentEvidenceException
      • calculate

        public static ImpactOutput calculate​(Network network,
                                             Distribution hypothesisQuery,
                                             StateContext[] hypothesisCombination,
                                             Evidence evidence,
                                             List<Variable> evidenceToAnalyse,
                                             ImpactOptions options)
                                      throws InconsistentEvidenceException
        Analyzes the impact of sets of evidence on a hypothesis query and discrete combination of that hypothesis query.
        Parameters:
        network - The network
        hypothesisQuery - The hypothesis query to be analyzed
        hypothesisCombination - Optional hypothesis state of the hypothesis variable to be analyzed
        evidence - The evidence, subsets of which will be analyzed.
        evidenceToAnalyse - Which evidence variables to analyze.
        options - Options affecting how the calculations are performed.
        Throws:
        InconsistentEvidenceException
      • calculateStreamed

        public static ImpactHypothesisOutput calculateStreamed​(Network network,
                                                               Distribution hypothesisQuery,
                                                               Evidence evidence,
                                                               List<Variable> evidenceToAnalyse,
                                                               ImpactAction outputItem,
                                                               ImpactOptions options)
                                                        throws InconsistentEvidenceException
        Analyzes the impact of sets of evidence on the resulting probability distribution of a hypothesis variable.
        Parameters:
        network - The network
        hypothesisQuery - The hypothesis query to be analyzed
        evidence - The evidence, subsets of which will be analyzed.
        evidenceToAnalyse - Which evidence variables to analyze.
        outputItem - A function which can accept the results of each evidence subset.
        options - Options affecting how the calculations are performed.
        Throws:
        InconsistentEvidenceException
      • calculateStreamed

        public static ImpactHypothesisOutput calculateStreamed​(Network network,
                                                               Distribution hypothesisQuery,
                                                               StateContext[] hypothesisState,
                                                               Evidence evidence,
                                                               List<Variable> evidenceToAnalyse,
                                                               ImpactAction outputItem,
                                                               ImpactOptions options)
                                                        throws InconsistentEvidenceException
        Analyzes the impact of sets of evidence on a hypothesis query and discrete combination of that hypothesis query.
        Parameters:
        network - The network
        hypothesisQuery - The hypothesis query to be analyzed
        hypothesisState - Optional hypothesis state/cell of the hypothesis query to be analyzed
        evidence - The evidence, subsets of which will be analyzed.
        evidenceToAnalyse - Which evidence variables to analyze.
        outputItem - A function which can accept the results of each evidence subset.
        options - Options affecting how the calculations are performed.
        Throws:
        InconsistentEvidenceException