|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.broadinstitute.genee.matrix.AbstractDataset
org.broadinstitute.genee.matrix.FixedSizeAbstractDataset
org.broadinstitute.genee.matrix.RowMajorArray2DDataset
public class RowMajorArray2DDataset
Dataset implementation using two-dimensional float array.
| Constructor Summary | |
|---|---|
RowMajorArray2DDataset(String name,
float[][] array)
Creates a new dataset with the specified name and array. |
|
RowMajorArray2DDataset(String name,
int rows,
int columns)
Creates a new dataset |
|
| Method Summary | |
|---|---|
float[][] |
getArray()
Gets the underlying float[][] array |
float |
getValue(int row,
int column)
Returns the value at the given row and column. |
void |
setArray(float[][] array)
Sets the underlying float[][] array |
void |
setValue(int rowIndex,
int columnIndex,
float value)
Sets the value at the given row and column indices. |
| Methods inherited from class org.broadinstitute.genee.matrix.FixedSizeAbstractDataset |
|---|
addSeries, getColumnCount, getColumnMetadata, getRowCount, getRowMetadata, setColumnMetadata, setRowMetadata |
| Methods inherited from class org.broadinstitute.genee.matrix.AbstractDataset |
|---|
addSeries, getName, getObjectValue, getProperty, getPropertyKeys, getSeriesClass, getSeriesCount, getSeriesName, getValue, removeSeries, setName, setObjectValue, setProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowMajorArray2DDataset(String name,
float[][] array)
the - dataset namearray - the data array
public RowMajorArray2DDataset(String name,
int rows,
int columns)
name - the dataset namerows - the number of rowscolumns - the number of columns| Method Detail |
|---|
public float[][] getArray()
public float getValue(int row,
int column)
Dataset
row - the row index.column - the column index.
public void setArray(float[][] array)
array - the array
public void setValue(int rowIndex,
int columnIndex,
float value)
Dataset
rowIndex - the row indexcolumnIndex - the column indexvalue - the value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||