Package com.bayesserver.analysis
Class Impact
- java.lang.Object
-
- com.bayesserver.analysis.Impact
-
public final class Impact extends Object
Analyzes the impact of evidence.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImpactOutputcalculate(Network network, Distribution hypothesisQuery, Evidence evidence, List<Variable> evidenceToAnalyse, ImpactOptions options)Analyzes the impact of sets of evidence on the resulting probability distribution of a hypothesis variable.static ImpactOutputcalculate(Network network, Distribution hypothesisQuery, StateContext[] hypothesisCombination, Evidence evidence, List<Variable> evidenceToAnalyse, ImpactOptions options)Analyzes the impact of sets of evidence on a hypothesis query and discrete combination of that hypothesis query.static ImpactOutputcalculate(Network network, Variable hypothesisVariable, Evidence evidence, List<Variable> evidenceToAnalyse, ImpactOptions options)Analyzes the impact of sets of evidence on a hypothesis state and its variable.static ImpactOutputcalculate(Network network, Variable hypothesisVariable, State hypothesisState, Evidence evidence, List<Variable> evidenceToAnalyse, ImpactOptions options)Analyzes the impact of sets of evidence on a hypothesis state and its variable.static ImpactHypothesisOutputcalculateStreamed(Network network, Distribution hypothesisQuery, Evidence evidence, List<Variable> evidenceToAnalyse, ImpactAction outputItem, ImpactOptions options)Analyzes the impact of sets of evidence on the resulting probability distribution of a hypothesis variable.static ImpactHypothesisOutputcalculateStreamed(Network network, Distribution hypothesisQuery, StateContext[] hypothesisState, Evidence evidence, List<Variable> evidenceToAnalyse, ImpactAction outputItem, ImpactOptions options)Analyzes the impact of sets of evidence on a hypothesis query and discrete combination of that hypothesis query.
-
-
-
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 networkhypothesisVariable- The hypothesis variable to be analyzedhypothesisState- The state of the hypothesis variable to be analyzedevidence- 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 networkhypothesisVariable- The hypothesis variable to be analyzedevidence- 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 networkhypothesisQuery- The hypothesis query to be analyzedevidence- 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 networkhypothesisQuery- The hypothesis query to be analyzedhypothesisCombination- Optional hypothesis state of the hypothesis variable to be analyzedevidence- 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 networkhypothesisQuery- The hypothesis query to be analyzedevidence- 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 networkhypothesisQuery- The hypothesis query to be analyzedhypothesisState- Optional hypothesis state/cell of the hypothesis query to be analyzedevidence- 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
-
-