public class Distribution2KeyTable
extends java.lang.Object
Constructor and Description |
---|
Distribution2KeyTable(int lenght1,
int lenght2)
Builder
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(int dim,
double[] values)
Add a row to the table
|
void |
addValue(int dim1,
int dim2,
double values)
Modifies a value in the table
|
void |
clear()
Clear table
|
void |
erase(int dim)
Erase a row of the table
|
double |
get(int dim1,
int dim2)
Get a value
|
public Distribution2KeyTable(int lenght1, int lenght2)
lenght1
- Lenght of the first keylenght2
- Lenght of the second keypublic void clear()
public void erase(int dim)
dim
- Row to erasepublic void addRow(int dim, double[] values)
dim
- Index of the rowvalues
- Contents of the rowpublic void addValue(int dim1, int dim2, double values)
dim1
- First dimensiondim2
- Second dimensionvalues
- Valuepublic double get(int dim1, int dim2)
dim1
- First dimensiondim2
- Second dimension