com.jamonapi.RangeBase Maven / Gradle / Ivy
package com.jamonapi;
/** Base class for ranges which are a compromise between aggregation and tracking details.
*/
final class RangeBase extends RangeImp {
private static final long serialVersionUID = 278L;
private double[] rangeValues;
/** The first range will catcth anything less than that value. */
RangeBase(RangeHolder rangeHolder) {
this.rangeHolder=rangeHolder;
this.isLessThan=rangeHolder.isLessThan();
this.rangeValues=rangeHolder.getEndPoints();
int len=rangeValues.length;
// add one to cover values less than first range
frequencyDist=new FrequencyDistBase[len+1];
for (int i=0;i