Searched refs:numOfStates (Results 1 – 1 of 1) sorted by relevance
259 public static double getFlipProbability(long numOfStates, double privacyEpsilon) { in getFlipProbability() argument260 return (numOfStates) / (numOfStates + Math.exp(privacyEpsilon) - 1D); in getFlipProbability()276 public static double getInformationGain(long numOfStates, double flipProbability) { in getInformationGain() argument277 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() argument290 getFlipProbability(numOfStates, privacyEpsilon) * (numOfStates - 1L) / numOfStates; in getFakeProbability()300 long numOfStates, long numUsedScopes, long numEventStates, double privacyEpsilon) { in calculateInformationGainWithAttributionScope() argument[all …]