Class Impact
Analyzes the impact of evidence.
Inheritance
Inherited Members
Namespace: BayesServer.Analysis
Assembly: BayesServer.Analysis.dll
Syntax
public static class Impact
Methods
Calculate(Network, IDistribution, IEvidence, IList<Variable>, ImpactOptions)
Analyzes the impact of sets of evidence on the resulting probability distribution of a hypothesis variable.
Declaration
public static ImpactOutput Calculate(Network network, IDistribution hypothesisQuery, IEvidence evidence, IList<Variable> evidenceToAnalyse, ImpactOptions options)
Parameters
Type | Name | Description |
---|---|---|
Network | network | The network |
IDistribution | hypothesisQuery | The hypothesis query to be analyzed |
IEvidence | evidence | The evidence, subsets of which will be analyzed. |
System.Collections.Generic.IList<Variable> | evidenceToAnalyse | Which evidence variables to analyze. |
ImpactOptions | options | Options affecting how the calculations are performed. |
Returns
Type | Description |
---|---|
ImpactOutput |
Calculate(Network, IDistribution, StateContext[], IEvidence, IList<Variable>, ImpactOptions)
Analyzes the impact of sets of evidence on a hypothesis query and discrete combination of that hypothesis query.
Declaration
public static ImpactOutput Calculate(Network network, IDistribution hypothesisQuery, StateContext[] hypothesisCombination, IEvidence evidence, IList<Variable> evidenceToAnalyse, ImpactOptions options)
Parameters
Type | Name | Description |
---|---|---|
Network | network | The network |
IDistribution | hypothesisQuery | The hypothesis query to be analyzed |
StateContext[] | hypothesisCombination | Optional hypothesis state of the hypothesis variable to be analyzed |
IEvidence | evidence | The evidence, subsets of which will be analyzed. |
System.Collections.Generic.IList<Variable> | evidenceToAnalyse | Which evidence variables to analyze. |
ImpactOptions | options | Options affecting how the calculations are performed. |
Returns
Type | Description |
---|---|
ImpactOutput |
Calculate(Network, Variable, IEvidence, IList<Variable>, ImpactOptions)
Analyzes the impact of sets of evidence on a hypothesis state and its variable.
Declaration
public static ImpactOutput Calculate(Network network, Variable hypothesisVariable, IEvidence evidence, IList<Variable> evidenceToAnalyse, ImpactOptions options)
Parameters
Type | Name | Description |
---|---|---|
Network | network | The network |
Variable | hypothesisVariable | The hypothesis variable to be analyzed |
IEvidence | evidence | The evidence, subsets of which will be analyzed. |
System.Collections.Generic.IList<Variable> | evidenceToAnalyse | Which evidence variables to analyze. |
ImpactOptions | options | Options affecting how the calculations are performed. |
Returns
Type | Description |
---|---|
ImpactOutput |
Calculate(Network, Variable, State, IEvidence, IList<Variable>, ImpactOptions)
Analyzes the impact of sets of evidence on a hypothesis state and its variable.
Declaration
public static ImpactOutput Calculate(Network network, Variable hypothesisVariable, State hypothesisState, IEvidence evidence, IList<Variable> evidenceToAnalyse, ImpactOptions options)
Parameters
Type | Name | Description |
---|---|---|
Network | network | The network |
Variable | hypothesisVariable | The hypothesis variable to be analyzed |
State | hypothesisState | The state of the hypothesis variable to be analyzed |
IEvidence | evidence | The evidence, subsets of which will be analyzed. |
System.Collections.Generic.IList<Variable> | evidenceToAnalyse | Which evidence variables to analyze. |
ImpactOptions | options | Options affecting how the calculations are performed. |
Returns
Type | Description |
---|---|
ImpactOutput |
CalculateStreamed(Network, IDistribution, IEvidence, IList<Variable>, Action<ImpactOutputItem>, ImpactOptions)
Analyzes the impact of sets of evidence on the resulting probability distribution of a hypothesis variable.
Declaration
public static ImpactHypothesisOutput CalculateStreamed(Network network, IDistribution hypothesisQuery, IEvidence evidence, IList<Variable> evidenceToAnalyse, Action<ImpactOutputItem> outputItem, ImpactOptions options)
Parameters
Type | Name | Description |
---|---|---|
Network | network | The network |
IDistribution | hypothesisQuery | The hypothesis query to be analyzed |
IEvidence | evidence | The evidence, subsets of which will be analyzed. |
System.Collections.Generic.IList<Variable> | evidenceToAnalyse | Which evidence variables to analyze. |
System.Action<ImpactOutputItem> | outputItem | A function which can accept the results of each evidence subset. |
ImpactOptions | options | Options affecting how the calculations are performed. |
Returns
Type | Description |
---|---|
ImpactHypothesisOutput |
CalculateStreamed(Network, IDistribution, StateContext[], IEvidence, IList<Variable>, Action<ImpactOutputItem>, ImpactOptions)
Analyzes the impact of sets of evidence on a hypothesis query and discrete combination of that hypothesis query.
Declaration
public static ImpactHypothesisOutput CalculateStreamed(Network network, IDistribution hypothesisQuery, StateContext[] hypothesisState, IEvidence evidence, IList<Variable> evidenceToAnalyse, Action<ImpactOutputItem> outputItem, ImpactOptions options)
Parameters
Type | Name | Description |
---|---|---|
Network | network | The network |
IDistribution | hypothesisQuery | The hypothesis query to be analyzed |
StateContext[] | hypothesisState | Optional hypothesis state/cell of the hypothesis query to be analyzed |
IEvidence | evidence | The evidence, subsets of which will be analyzed. |
System.Collections.Generic.IList<Variable> | evidenceToAnalyse | Which evidence variables to analyze. |
System.Action<ImpactOutputItem> | outputItem | A function which can accept the results of each evidence subset. |
ImpactOptions | options | Options affecting how the calculations are performed. |
Returns
Type | Description |
---|---|
ImpactHypothesisOutput |