Package | Description |
---|---|
bham.leakiest | |
bham.leakiest.infotheory |
Modifier and Type | Method and Description |
---|---|
State[] |
ProbDist.getStatesArray()
Returns the array of the states of this probability distribution.
|
State[] |
ProbDist.probDistToStatesArray(java.lang.String[] inputNames)
Returns the array of the states in a given probability distribution
that is sorted in the order of a given array inputNames.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<State> |
ProbDist.getStatesCollection()
Returns the collection of the states of this probability distribution.
|
Modifier and Type | Method and Description |
---|---|
double |
ProbDist.getProb(State st)
Returns the probability of the state in the probability distribution.
|
java.lang.String |
ProbDist.getProjectedState(State jst,
int numElements)
Returns the string that denotes a projection of a given joint state.
|
boolean |
State.isEqual(State st)
Checks whether the two state are equivalent,
|
void |
ProbDist.printProb(State st)
Print the probability of a state.
|
void |
ProbDist.removeProb(State st)
Removes a state from the probability distribution.
|
void |
ProbDist.updateProb(State st,
double prob)
Updates the probability distribution as to the probability of a state.
|
Constructor and Description |
---|
ProbDist(State[] sts_in,
double[] pmf_in)
Constructs a probability distribution with initial values.
|
ProbDist(State[] sts_in,
double[] pmf_in,
boolean lock)
Constructs a probability distribution with initial values and lock.
|
Constructor and Description |
---|
ProbDist(java.util.HashMap<State,java.lang.Double> dist_in,
boolean lock)
Constructs a probability distribution with initial values and lock.
|
Modifier and Type | Method and Description |
---|---|
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.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.
|