Examples of quantile()


Examples of hep.aida.bin.QuantileBin1D.quantile()

  System.out.println();
  //int step = 1;
  int step = 10;
  for (int i = 1; i < 100; ) {
      double percent = ((double)i) * 0.01;
      double quantile = qAccum.quantile(percent);
      System.out.println(fmt.format(percent) + "  " + quantile + ",  " + dbin.quantile(percent)+ ",  " + (dbin.quantile(percent)-quantile));
      i = i + step;
  }
}
}
View Full Code Here

Examples of org.elasticsearch.search.aggregations.metrics.percentiles.tdigest.TDigestState.quantile()

    public double metric(String name, long bucketOrd) {
        TDigestState state = getState(bucketOrd);
        if (state == null) {
            return Double.NaN;
        } else {
            return state.quantile(Double.parseDouble(name) / 100);
        }
    }

    @Override
    public InternalAggregation buildEmptyAggregation() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.