Searched refs:StochasticRoundingUtil (Results 1 – 3 of 3) sorted by relevance
65 StochasticRoundingUtil.roundStochastically(testCase.input, testCase.numBits), in testRoundStochasticallyMatchesExpectedArguments()72 assertThat(Double.isNaN(StochasticRoundingUtil.roundStochastically(Double.NaN, 8))) in testRoundStochasticallyPassesNaN()83 double result = StochasticRoundingUtil.roundStochastically(input, 8); in testRoundStochasticallyIsNonDeterministic()103 total += StochasticRoundingUtil.roundStochastically(input, 8); in testRoundStochasticallyApproximatesTrueSim()115 StochasticRoundingUtil.roundStochastically(0, -1);124 StochasticRoundingUtil.roundStochastically(0, 66); in testRoundStochasticallyGreaterThanMaxNumBitsThrows()
19 import com.android.adservices.service.common.StochasticRoundingUtil;32 mAdCost = StochasticRoundingUtil.roundStochastically(adCost, numBits); in AdCost()
24 public final class StochasticRoundingUtil { class36 private StochasticRoundingUtil() throws IllegalAccessException { in StochasticRoundingUtil() method in StochasticRoundingUtil