public interface Int2IntConditionalFrequencyDistribution
extends org.apache.hadoop.io.Writable
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Performs an internal consistency check of this data structure.
|
int |
get(int k,
int cond)
Returns the observed count of
k conditioned on cond. |
Int2IntFrequencyDistribution |
getConditionalDistribution(int cond)
Returns the frequency distribution conditioned on
cond. |
long |
getMarginalCount(int k)
Returns the marginal count of
k. |
long |
getSumOfAllCounts()
Returns the sum of all counts.
|
void |
increment(int k,
int cond)
Increments the observed count of
k conditioned on cond. |
void |
increment(int k,
int cond,
int v)
Increments the observed count of
k conditioned on cond by
v. |
void |
set(int k,
int cond,
int v)
Sets the observed count of
k conditioned on cond to v. |
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.long getMarginalCount(int k)
k. That is, sum of counts of k
conditioned on all cond.Int2IntFrequencyDistribution getConditionalDistribution(int cond)
cond.long getSumOfAllCounts()
void check()
Copyright © 2018. All rights reserved.