code: function ConfirmStats(type, logger) {
    if (!(this instanceof ConfirmStats))
      return new ConfirmStats(type, logger);
  
    this.logger = Logger.global;
  
    this.type = type;
    this.decay = 0;
    this.maxConfirms = 0;
  
    this.buckets = new Float64Array(0);
    this.bucketMap = new DoubleMap();
  
    this.confAvg = [];
    this.curBlockConf = [];
    this.unconfTX = [];
  
    this.oldUnconfTX = new Int32Array(0);
    this.curBlockTX = new Int32Array(0);
    this.txAvg = new Float64Array(0);
    this.curBlockVal = new Float64Array(0);
    this.avg = new Float64Array(0);
  
    if (logger) {
      assert(typeof logger === 'object');
      this.logger = logger.context('fees');
    }
  }
docs: Confirmation stats.
  @alias module:mempool.ConfirmStats
  @constructor
  @param {String} type
  @param {Logger?} logger