BayesAnalyser class abstract

Base class to analyse a BayesianNetwork.

Implementers

Constructors

BayesAnalyser(BayesianNetwork network)

Properties

hashCode int
The hash code for this object.
no setterinherited
network BayesianNetwork
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ask(String query, {String positive = 'T', String negative = 'F', bool verbose = false}) Answer
generateQuestions(String inferVariable, {bool addPriorQuestions = false, int combinationsLevel = 1, Iterable<String>? variables, bool variablesFilter(String name)?, Iterable<String>? ignoreVariables, bool ignoreVariablesFilter(String name)?, bool allowEmptySelection = true}) List<String>
Generates questions to infer inferVariable.
infer(String targetVariable, String selectedVariables, {String? originalQuery, bool verbose = false}) Answer
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseQuery(String query, {String positive = 'T', String negative = 'F'}) String
quiz(List<String> questions, {String positive = 'T', String negative = 'F', bool verbose = false}) List<Answer>
Performas a Quiz: Asks all the questions and returns the answers sorted by best probability (Answer.probability).
showAnswer(String query, {String positive = 'T', String negative = 'F', bool verbose = false}) Answer
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited