public class GLeakage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
base_log
Base when computing the logarithms.
|
Constructor and Description |
---|
GLeakage() |
Modifier and Type | Method and Description |
---|---|
static double |
conditionalGEntropy(double[] pmf,
State[] sts,
Channel channel,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain,
java.lang.String[] inputDomain)
Calculates the posterior g-entropy of a channel
given a probability distribution, a gain function gf,
and the set of all guesses guessDomain.
|
static double |
conditionalGEntropy(ProbDist pd,
Channel channel,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain)
Calculates the posterior g-entropy of a channel
given a probability distribution, a gain function gf,
and the set of all guesses guessDomain.
|
static double |
gEntropy(double[] pmf,
State[] sts,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain,
java.lang.String[] inputDomain)
Calculates the g-entropy of a probability distribution.
|
static double |
gEntropy(ProbDist pd,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain)
Calculates the g-entropy of a probability distribution.
|
static double |
gLeakage(ProbDist pd,
Channel channel,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain)
Calculates the g-leakage from a channel
given an input probability distribution pd
given a probability distribution, a gain function gf,
and the set of all guesses guessDomain.
|
public static final int base_log
public static double conditionalGEntropy(double[] pmf, State[] sts, Channel channel, GainFunction gf, java.util.Set<java.lang.String> guessDomain, java.lang.String[] inputDomain)
pmf
- pmf arraysts
- states arraychannel
- channelgf
- gain functionguessDomain
- the set of all guessesinputDomain
- the set of all inputspublic static double conditionalGEntropy(ProbDist pd, Channel channel, GainFunction gf, java.util.Set<java.lang.String> guessDomain)
pd
- prbability distributionchannel
- channelgf
- gain functionguessDomain
- the set of all guessespublic static double gEntropy(double[] pmf, State[] sts, GainFunction gf, java.util.Set<java.lang.String> guessDomain, java.lang.String[] inputDomain)
pmf
- pmf arraysts
- states arraygf
- gain functionguessDomain
- the set of all guessesinputDomain
- the set of all inputspublic static double gEntropy(ProbDist pd, GainFunction gf, java.util.Set<java.lang.String> guessDomain)
pd
- probability distributiongf
- gain functionguessDomain
- the set of all guessespublic static double gLeakage(ProbDist pd, Channel channel, GainFunction gf, java.util.Set<java.lang.String> guessDomain)
pd
- prbability distributionchannel
- channelgf
- gain functionguessDomain
- the set of all guesses