public interface MatrixData<ValueType> extends Data
getRowCount() and
getColumnCount() should be efficient and give a good indication of
the size of the dataset. If the row count and or column count is high use
getValue(int, int) to subset the dataset.| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Gets the column dimension size of the matrix
|
SimpleEntity |
getColumnHeader(int columnIndex)
Gets the column header at a given row
|
List<SimpleEntity> |
getColumnHeaders()
Gets a list of the column headers for the matrix
|
SimpleEntity[] |
getColumnHeadersAsArray()
Gets an array of the column headers for the matrix
|
int |
getRowCount()
Gets the row dimension size of the matrix
|
SimpleEntity |
getRowHeader(int rowIndex)
Gets the row header at a given row
|
List<SimpleEntity> |
getRowHeaders()
Gets a list of the row headers for the matrix
|
SimpleEntity[] |
getRowHeadersAsArray()
Gets an array of the row headers for the matrix
|
ValueType |
getValue(int rowIndex,
int columnIndex)
Gets the value in the matrix at a given row and column
|
Feature |
getValueFeature()
Gets the feature that describes the values in the matrix
|
List<List<ValueType>> |
getValues()
Gets all the values in the matrix as a list of lists
|
ValueType[][] |
getValuesAsArray()
Gets all values as 2-dimension array
|
boolean |
hasColumnHeaders()
Determines if the matrix has column headers
|
boolean |
hasRowHeaders()
Determines if the matrix has row headers
|
getDataset, getHeader, getIDs, getSizegetName, getUniqueIdentifierList<List<ValueType>> getValues()
ValueType[][] getValuesAsArray()
ValueType getValue(int rowIndex, int columnIndex)
rowIndex - the row index of the required valuecolumnIndex - the column index of the required valueint getRowCount()
int getColumnCount()
boolean hasRowHeaders()
true if the matrix has row headers,
false otherwiseList<SimpleEntity> getRowHeaders()
SimpleEntity[] getRowHeadersAsArray()
SimpleEntity getRowHeader(int rowIndex)
rowIndex - the row index of the required valueboolean hasColumnHeaders()
true if the matrix has column headers,
false otherwiseList<SimpleEntity> getColumnHeaders()
SimpleEntity[] getColumnHeadersAsArray()
SimpleEntity getColumnHeader(int columnIndex)
columnIndex - the column index of the required valueFeature getValueFeature()
Copyright © 2017. All rights reserved.