Package | Description |
---|---|
bham.leakiest | |
bham.leakiest.infotheory |
Modifier and Type | Method and Description |
---|---|
static Channel |
Channel.cascade(Channel[] channels)
Returns the cascade channel (sequential composition) of given channels.
|
Channel |
Observations.generateChannel()
Returns the channel.
|
Channel |
ReadFile.getChannel()
Returns the channel.
|
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 Channel |
Channel.parallelComposition(Channel[] channels)
Calculate the channel composed in parallel.
|
static Channel |
Channel.parallelComposition(Channel[] channels,
boolean removeBrackets1,
boolean removeBrackets2)
Calculate the channel composed in parallel.
|
Modifier and Type | Method and Description |
---|---|
static Channel |
Channel.cascade(Channel[] channels)
Returns the cascade channel (sequential composition) of given channels.
|
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.estimateParallelMinCapacityWithSharedInput(Channel[] channels)
Returns an upper bound on the min-capacity 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 Channel |
Channel.getJointDist(ProbDist prior,
Channel channel)
Return the joint distribution on inputs and outputs generated by prior and channel.
|
static Channel |
Channel.parallelComposition(Channel[] channels)
Calculate the channel composed in parallel.
|
static Channel |
Channel.parallelComposition(Channel[] channels,
boolean removeBrackets1,
boolean removeBrackets2)
Calculate the channel composed in parallel.
|
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) |
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 double |
ShannonEntropy.conditionalEntropy(ProbDist pd,
Channel channel)
Calculates the conditional entropy of a channel
given an input probability distribution.
|
static double |
GLeakage.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 |
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 |
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,
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.minCapacity(Channel channel)
Calculates the min-capacity of a channel.
|
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.
|
Constructor and Description |
---|
BlahutArimoto(Channel channel,
double[] inputPMF_Q,
double acceptableError,
int noOfiterations)
Sets initial data to calculates the capacity.
|
BlahutArimoto(Channel channel,
double acceptableError,
int noOfiterations)
Sets initial data to calculates the capacity.
|