node-fpgrowth
Advanced tools
Comparing version
@@ -113,3 +113,3 @@ "use strict"; | ||
var prefixPaths = this._getPrefixPaths(start, function (i, count) { | ||
conditionalTreeSupports[JSON.stringify(i)] = (conditionalTreeSupports[JSON.stringify(i)] || 0) + count; | ||
conditionalTreeSupports[JSON.stringify(i)] = (conditionalTreeSupports[JSON.stringify(i)] || 1) + 1; | ||
}); | ||
@@ -116,0 +116,0 @@ // FP-Tree is built from the conditional tree supports and the processed prefix paths. |
{ | ||
"name": "node-fpgrowth", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "FPGrowth Algorithm implementation in TypeScript / JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/fpgrowth.js", |
@@ -130,3 +130,3 @@ import { FPNode } from './fpnode'; | ||
let prefixPaths: IPrefixPath<T>[] = this._getPrefixPaths(start, (i: T, count: number) => { | ||
conditionalTreeSupports[JSON.stringify(i)] = (conditionalTreeSupports[JSON.stringify(i)] || 0) + count; | ||
conditionalTreeSupports[JSON.stringify(i)] = (conditionalTreeSupports[JSON.stringify(i)] || 1) + 1; | ||
}); | ||
@@ -133,0 +133,0 @@ |
56659
-0.01%