Home
last modified time | relevance | path

Searched refs:numOfStates (Results 1 – 1 of 1) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/noising/
DCombinatorics.java259 public static double getFlipProbability(long numOfStates, double privacyEpsilon) { in getFlipProbability() argument
260 return (numOfStates) / (numOfStates + Math.exp(privacyEpsilon) - 1D); in getFlipProbability()
276 public static double getInformationGain(long numOfStates, double flipProbability) { in getInformationGain() argument
277 if (numOfStates <= 1L) { in getInformationGain()
280 double log2Q = DoubleMath.log2(numOfStates); in getInformationGain()
281 double fakeProbability = flipProbability * (numOfStates - 1L) / numOfStates; in getInformationGain()
284 - fakeProbability * DoubleMath.log2(numOfStates - 1); in getInformationGain()
288 long numOfStates, long numUsedScopes, long numEventStates, double privacyEpsilon) { in getFakeProbability() argument
290 getFlipProbability(numOfStates, privacyEpsilon) * (numOfStates - 1L) / numOfStates; in getFakeProbability()
300 long numOfStates, long numUsedScopes, long numEventStates, double privacyEpsilon) { in calculateInformationGainWithAttributionScope() argument
[all …]