public interface TwoDimensionalCounterInterface<K1,K2>
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(K1 o1,
K2 o2) |
void |
decrementCount(K1 o1,
K2 o2) |
void |
decrementCount(K1 o1,
K2 o2,
double count) |
double |
defaultReturnValue() |
void |
defaultReturnValue(double rv) |
Set<K1> |
firstKeySet() |
double |
getCount(K1 o1,
K2 o2) |
Counter<K2> |
getCounter(K1 o) |
void |
incrementCount(K1 o1,
K2 o2) |
void |
incrementCount(K1 o1,
K2 o2,
double count) |
boolean |
isEmpty() |
void |
remove(K1 key) |
double |
remove(K1 o1,
K2 o2) |
Set<K2> |
secondKeySet() |
void |
setCount(K1 o1,
K2 o2,
double count) |
int |
size() |
String |
toCSVString(NumberFormat nf) |
double[][] |
toMatrix(List<K1> firstKeys,
List<K2> secondKeys)
Given an ordering of the first (row) and second (column) keys, will produce
a double matrix.
|
String |
toMatrixString(int cellSize) |
double |
totalCount() |
double |
totalCount(K1 k1) |
void defaultReturnValue(double rv)
double defaultReturnValue()
int size()
double totalCount()
double totalCount(K1 k1)
boolean isEmpty()
void remove(K1 key)
String toMatrixString(int cellSize)
double[][] toMatrix(List<K1> firstKeys, List<K2> secondKeys)
String toCSVString(NumberFormat nf)