RuleGenerator<T> class

Generates association rules from a set of frequent itemsets.

This class takes the output of the FP-Growth algorithm (frequent itemsets and their support counts) and generates association rules that meet a minimum confidence threshold.

Constructors

RuleGenerator({required double minConfidence, required Map<List<T>, int> frequentItemsets, required int totalTransactions})
Creates a new RuleGenerator.

Properties

frequentItemsets Map<List<T>, int>
A map of frequent itemsets to their support counts.
final
hashCode int
The hash code for this object.
no setterinherited
minConfidence double
The minimum confidence threshold for a rule to be considered valid.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTransactions int
The total number of transactions processed.
final

Methods

generateRules() List<AssociationRule<T>>
Generates all possible association rules that meet the minConfidence.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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