From 20756764f99c23ae862514390c93037aae958931 Mon Sep 17 00:00:00 2001 From: bkmartinjr Date: Tue, 29 May 2018 11:58:57 -0700 Subject: [PATCH] add comments --- src/util/typedCrossfilter/bitArray.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/typedCrossfilter/bitArray.js b/src/util/typedCrossfilter/bitArray.js index 3a464679..cff83569 100644 --- a/src/util/typedCrossfilter/bitArray.js +++ b/src/util/typedCrossfilter/bitArray.js @@ -37,10 +37,15 @@ class BitArray { this.bitarray = new Int32Array(this.width * this.length); } + // Return the number of records that are selected, ie, have a one bit in + // all allocated dimensions. + // get selectionCount() { return this.countAllOnes(); } + // Count all records that have a 'one' bit in allocated dimensions. + // countAllOnes() { let count = 0; for (let i = 0; i < this.width; i++) {