Searched refs:meanCalculator (Results 1 – 2 of 2) sorted by relevance
13 private MeanCalculator meanCalculator; field in MeanCalculatorTest17 meanCalculator = new MeanCalculator(); in setup()22 assertThat(meanCalculator.getMean(), equalTo(0f)); in testMeanWithNoNumbers()27 meanCalculator.add(2); in testMeanWithOneNumber()28 assertThat(meanCalculator.getMean(), equalTo(2f)); in testMeanWithOneNumber()33 meanCalculator.add(2); in testMeanWithTwoNumbers()34 meanCalculator.add(4); in testMeanWithTwoNumbers()35 assertThat(meanCalculator.getMean(), equalTo(3f)); in testMeanWithTwoNumbers()41 meanCalculator.add(i); in testMeanWithTwentyNumbers()43 assertThat(meanCalculator.getMean(), equalTo(10.5f)); in testMeanWithTwentyNumbers()[all …]
48 MeanCalculator meanCalculator = layerRenderTimes.get(layerName); in recordRenderTime() local49 if (meanCalculator == null) { in recordRenderTime()50 meanCalculator = new MeanCalculator(); in recordRenderTime()51 layerRenderTimes.put(layerName, meanCalculator); in recordRenderTime()53 meanCalculator.add(millis); in recordRenderTime()