Package com.google.test.metric.report.chart.Histogram

Examples of com.google.test.metric.report.chart.Histogram.Logarithmic


    assertTrue(String.format("Expected %s was %s", Arrays.toString(expected),
        Arrays.toString(actual)), Arrays.equals(expected, actual));
  }

  public void testLogarithmicScaling() throws Exception {
    Histogram histogram = new Histogram(1, 1, 3, new Logarithmic());
    for (int i=0; i<100; i++) {
      histogram.value(1);
    }
    for (int i=0; i<10; i++) {
      histogram.value(2);
View Full Code Here


  }

  public String getHistogram() {
    GradeCategories gradeCategories = new GradeCategories(maxExcellentCost, maxAcceptableCost);
    HistogramChartUrl histogramChartUrl =
        gradeCategories.createHistogram(HISTOGRAM_WIDTH, HISTOGRAM_HEIGHT, costs, new Logarithmic());
    return histogramChartUrl.getHtml();
  }
View Full Code Here

TOP

Related Classes of com.google.test.metric.report.chart.Histogram.Logarithmic

Copyright © 2018 www.massapicom. 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.