constructor(metric, quantiles, maxAgeSeconds, ageBuckets) {
		this.metric = metric;
		this.quantiles = Array.from(quantiles);
		this.maxAgeSeconds = maxAgeSeconds;
		this.ageBuckets = ageBuckets;
		this.ringBuckets = [];
		for (let i = 0; i < ageBuckets; i++) {
			this.ringBuckets.push(new Bucket());
		}
		this.dirty = true;

		this.currentBucket = -1;
		this.rotate();

		this.lastSnapshot = null;
		this.setDirty();
	}
Creates an instance of TimeWindowQuantiles.
@param {BaseMetric} metric
@param {Array<Number>} quantiles
@param {Number} maxAgeSeconds
@param {Number} ageBuckets
@memberof TimeWindowQuantiles