Package | Description |
---|---|
bham.leakiest | |
bham.leakiest.infotheory |
Modifier and Type | Method and Description |
---|---|
ProbDist |
ProbDist.cumulativeProbDist()
Returns the cumulative probability distribution of this distribution.
|
ProbDist[] |
ProbDist.getAllMarginals()
Returns all the marginals of this probability distribution.
|
ProbDist |
ReadFile.getDistribution()
Returns the distribution.
|
ProbDist |
Observations.getInputProbDist()
Returns the input probability distribution obtained from the observations.
|
ProbDist |
ProbDist.getMarginal(int num)
Returns a marginal probability distribution.
|
ProbDist |
Channel.getPosteriorProbDist(ProbDist prior) |
ProbDist |
ProbDist.sharedProbDist(int numJoint,
boolean lock)
Returns the joint distribution of a shared input.
|
static ProbDist |
ProbDist.uniformProbDist(java.lang.String[] stateNames,
boolean lock)
Returns the uniform probability distribution on
a given array of states.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
ApproxPrior.errorMinEntropyLeakSmallProbsRemoved(ProbDist apd,
Channel[] channels,
double sumOfSmallProbs)
Returns an error of the leakage caused by removing small probabilities
by the input approximation technique.
|
static double[] |
ApproxPrior.errorMinEntropyLeakSmallProbsRemovedNoReexecutionWithJointInput(ProbDist pd,
Channel[] channels,
double sumOfSmallProbs)
Returns an error of the leakage caused by removing small probabilities
by the input approximation technique in the case of jointly supported
input distributions.
|
static double[] |
ApproxPrior.errorMinEntropyLeakSmallProbsRemovedNoReexecutionWithSharedInput(ProbDist pd,
Channel[] channels,
double sumOfSmallProbs)
Returns an error of the leakage caused by removing small probabilities
by the input approximation technique in the case of shared input distributions.
|
static double[] |
CompositionalEstimate.estimateParallelGLeakWithSharedInput(ProbDist jpd,
ProbDist apd,
Channel[] channels,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain)
Returns an upper bound on the g-leakage of
the channel composed in parallel in the case input
is shared among the channels.
|
static double[] |
CompositionalEstimate.estimateParallelMinEntropyLeak(ProbDist jpd,
ProbDist apd,
Channel[] channels)
Returns a lower and an upper bound on the min-entropy leakage of
the channel composed in parallel where inputs to different channels
are drawn independently.
|
static double[] |
CompositionalEstimate.estimateParallelMinEntropyLeakWithSharedInput(ProbDist jpd,
ProbDist apd,
Channel[] channels)
Returns an upper bound on the min-entropy leakage of
the channel composed in parallel in the case input
is shared among the channels.
|
static double |
CompositionalEstimate.exactParallelMinEntropyLeak(ProbDist jpd,
Channel[] channels) |
static double |
CompositionalEstimate.exactParallelMinEntropyLeakWithSharedInput(ProbDist jpd,
Channel[] channels) |
static double |
Estimate.getCorrectedMIConfidenceIntervalUnderKnownPrior(Observations obs,
ProbDist pd)
Calculates the confidence interval for corrected mutual information from
given observations
when the input distribution is also estimated from the sample.
|
static double |
Estimate.getCorrectedMILowerBoundUnderKnownPrior(Observations obs,
ProbDist pd)
Calculates the lower bound of the confidence interval (95%)
of mutual information from given observations
when the input distribution is also estimated from the sample.
|
static double |
Estimate.getCorrectedMIUpperBoundUnderKnownPrior(Observations obs,
ProbDist pd)
Calculates the upper bound of the confidence interval (95%)
of mutual information from given observations
when the input distribution is also estimated from the sample.
|
static double |
Estimate.getCorrectedMutualInformationWithKnownPrior(Observations obs,
ProbDist pd) |
Channel |
Channel.getJointDist(ProbDist prior)
Return the joint distribution on inputs and outputs
generated by a given prior and this channel.
|
static Channel |
Channel.getJointDist(ProbDist prior,
Channel channel)
Return the joint distribution on inputs and outputs generated by prior and channel.
|
static double |
Estimate.getOldCorrectedMIConfidenceIntervalUnderKnownPrior(Observations obs,
ProbDist pd)
Deprecated.
This method is only for confirming the old implementation and should be replaced with another method.
|
static double |
Estimate.getOldCorrectedMILowerBoundUnderKnownPrior(Observations obs,
ProbDist pd)
Deprecated.
This method is only for confirming the old implementation and should be replaced with another method.
|
static double |
Estimate.getOldCorrectedMIUpperBoundUnderKnownPrior(Observations obs,
ProbDist pd)
Deprecated.
This method is only for confirming the old implementation and should be replaced with another method.
|
static double |
Estimate.getOldCorrectedMutualInformationWithKnownPrior(Observations obs,
ProbDist pd)
Deprecated.
This method is only for confirming the old implementation and should be replaced with another method.
|
ProbDist |
Channel.getPosteriorProbDist(ProbDist prior) |
static double |
CompositionalEstimate.HgMin(ProbDist pd,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain)
Returns Hg^min(pd) = - log min { pd[x] g(w, x) | x in X, w in W, pd[x] g(w, x) != 0 }.
|
static double |
CompositionalEstimate.HMinInf(ProbDist pd)
Returns H^min(pd) = - log min { pd[x] | x in support(pd) }.
|
static double[] |
CompositionalEstimate.MInf(ProbDist jpd,
int numChannels)
Returns MInf defined in our compositionality paper.
|
static void |
CompositionalEstimate.printEstimatedMeasure(int taskType,
ProbDist[] pds,
Channel[] channels,
int numChannels,
int sampleSize,
boolean priorShared,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain,
boolean compositionalEstimate,
double approxPriorLevel,
boolean approxDoNotKnowChannels)
Chooses to estimate and print one of leakage measures
by compositional reasoning in the case of discrete inputs.
|
static void |
CompositionalEstimate.printExactDiscreteMinEntropyLeakOnly(ProbDist[] pds,
Channel[] channels,
boolean priorShared) |
void |
Channel.printJointMatrix(ProbDist pd)
Prints the joint probability distribution obtained by a given
(prior) input probability distribution and this channel to standard out.
|
static double |
ApproxPrior.sumOfProbsRemoved(ProbDist apd)
Returns the summation of all probabilities removed from the input distribution,
by input approximation.
|
static double |
Estimate.VarianceOfEstimatedMIUnderEstimatedPrior(ProbDist pd,
Channel channel,
int sampleSize)
Calculates the variance for an estimated non-zero mutual information estimate
when the input distribution is also estimated from the sample.
|
static double |
Estimate.VarianceOfEstimatedMIUnderKnownPrior(ProbDist pd,
Channel channel,
int sampleSize)
Calculates the variance for an estimated non-zero mutual information estimate
when the input distribution is known.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
GainFunction.checkConsistency(ProbDist pd,
java.util.Set<java.lang.String> guessDomain)
Returns whether each guess in a given guess domain is contained
in a given probability distribution.
|
static double |
ShannonEntropy.conditionalEntropy(ProbDist pd,
Channel channel)
Calculates the conditional entropy of a channel
given an input probability distribution.
|
static double |
GLeakage.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 |
MinEntropy.conditionalMinEntropy(ProbDist pd,
Channel channel)
Calculates the conditional min-entropy of a probability distribution.
|
static double |
MinEntropy.conditionalVulnerability(ProbDist pd,
Channel channel)
Calculates the conditional vulnerability of a probability distribution
given a channel.
|
static double |
ShannonEntropy.entropy(ProbDist pd)
Calculates the entropy of a probability distribution.
|
static double |
GLeakage.gEntropy(ProbDist pd,
GainFunction gf,
java.util.Set<java.lang.String> guessDomain)
Calculates the g-entropy of a probability distribution.
|
static double |
GLeakage.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.
|
static double |
ShannonEntropy.H(ProbDist pd)
Calculates the entropy of a probability distribution.
|
static double |
ShannonEntropy.H(ProbDist pd,
Channel channel)
Calculates the conditional entropy of a channel
given an input probability distribution.
|
static double |
ShannonEntropy.I(ProbDist pd,
Channel channel)
Calculates mutual information between
an input PMF and a channel matrix.
|
static double |
MinEntropy.minEntropy(ProbDist pd)
Calculates the min-entropy of a probability distribution.
|
static double |
MinEntropy.minEntropyLeak(ProbDist pd,
Channel channel)
Calculates the min-entropy leakage from a channel
given an input probability distribution pd.
|
static double |
ShannonEntropy.mutualInformation(ProbDist pd,
Channel channel)
Calculates mutual information between
an input PMF and a channel matrix.
|
static double |
MinEntropy.vulnerability(ProbDist pd)
Calculates the vulnerability of a probability distribution.
|
Constructor and Description |
---|
RandomSample(ProbDist pd)
Initialises the random sampling from a given probability distribution.
|