bagos-apriori
Version:
Apriori adalah suatu metode Data Mining
19 lines (15 loc) • 446 B
JavaScript
// AssociationRule.js
;
class AssociationRule {
constructor() {
this.X = new Itemset();
this.Y = new Itemset();
this.Support = 0.0;
this.Confidence = 0.0;
}
toString() {
return this.X.toStringNoSupport() + ' => ' + this.Y.toStringNoSupport() +
' (Support: ' + this.Support.toFixed(2) + '%, ' +
' Confidence: ' + this.Confidence.toFixed(2) + '%)';
}
}