|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Int2IntConditionalFrequencyDistribution
A conditional frequency distribution where events are ints and counts are ints.
| Method Summary | |
|---|---|
void |
check()
Performs an internal consistency check of this data structure. |
int |
get(int k,
int cond)
Returns the observed frequency of k conditioned on cond. |
Int2IntFrequencyDistribution |
getConditionalDistribution(int cond)
Returns the frequency distribution conditioned on cond. |
int |
getMarginalCount(int k)
Returns the marginal count of k. |
long |
getSumOfAllFrequencies()
Returns the sum of all frequencies. |
void |
increment(int k,
int cond)
Increments the observed frequency of k conditioned on cond. |
void |
increment(int k,
int cond,
int v)
Increments the observed frequency of k conditioned on cond by v. |
void |
set(int k,
int cond,
int v)
Sets the observed frequency of k conditioned on cond to v. |
| Method Detail |
|---|
void set(int k,
int cond,
int v)
k conditioned on cond to v.
void increment(int k,
int cond)
k conditioned on cond.
void increment(int k,
int cond,
int v)
k conditioned on cond by v.
int get(int k,
int cond)
k conditioned on cond.
int getMarginalCount(int k)
k. That is, sum of counts of
k conditioned on all cond.
Int2IntFrequencyDistribution getConditionalDistribution(int cond)
cond.
long getSumOfAllFrequencies()
void check()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||