Class DenseDouble3dMatrix<R,C,S>
java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix3D<R,C,S,Double>
ubic.basecode.dataStructure.matrix.DoubleMatrix3D<R,C,S>
ubic.basecode.dataStructure.matrix.DenseDouble3dMatrix<R,C,S>
- Author:
- Xwan
-
Field Summary
Fields inherited from class ubic.basecode.dataStructure.matrix.DoubleMatrix3D
MAX_ROWS_TO_PRINT, MAX_SLICES_TO_PRINTFields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
colMap, colNames, rowMap, rowNames, sliceMap, sliceNames -
Constructor Summary
ConstructorsConstructorDescriptionDenseDouble3dMatrix(double[][][] data) DenseDouble3dMatrix(int slices, int rows, int columns) -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Get the number of columns the matrix has.doubleget(int i, int j, int k) Double[][]getColObj(int col) double[][]getColumn(int col) getObject(int slice, int row, int col) double[][]getRow(int row) Double[][]getRowObj(int row) double[][]getSlice(int slice) Double[][]getSliceObj(int slice) booleanisMissing(int slice, int row, int col) Check if the value at a given index is missing.intReturn the number of missing values in the matrix.introws()Get the number of rows the matrix hasvoidset(int slice, int row, int col, double val) voidsetQuick(int slice, int row, int column, double c) intslices()viewColumn(int column) viewRow(int row) viewSlice(int slice) Methods inherited from class ubic.basecode.dataStructure.matrix.DoubleMatrix3D
getColumnByName, getRowByName, getSliceByName, toStringMethods inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
addColumnName, addRowName, addSliceName, containsColumnName, containsRowName, containsSliceName, getColIndexByName, getColName, getColNameIterator, getColNames, getRowIndexByName, getRowName, getRowNameIterator, getRowNames, getSliceIndexByName, getSliceName, getSliceNameIterator, getSliceNames, hasColNames, hasRow, hasRowNames, hasSliceNames, setColumnNames, setRowNames, setSliceNames
-
Constructor Details
-
DenseDouble3dMatrix
public DenseDouble3dMatrix(double[][][] data) -
DenseDouble3dMatrix
-
DenseDouble3dMatrix
public DenseDouble3dMatrix(int slices, int rows, int columns) -
DenseDouble3dMatrix
-
-
Method Details
-
columns
public int columns()Description copied from interface:Matrix3DGet the number of columns the matrix has. -
get
public double get(int i, int j, int k) - Specified by:
getin classDoubleMatrix3D<R,C, S>
-
getColObj
- Specified by:
getColObjin classDoubleMatrix3D<R,C, S>
-
getColumn
public double[][] getColumn(int col) - Specified by:
getColumnin classDoubleMatrix3D<R,C, S>
-
getObject
-
getRow
public double[][] getRow(int row) - Specified by:
getRowin classDoubleMatrix3D<R,C, S>
-
getRowObj
- Specified by:
getRowObjin classDoubleMatrix3D<R,C, S>
-
getSlice
public double[][] getSlice(int slice) - Specified by:
getSlicein classDoubleMatrix3D<R,C, S>
-
getSliceObj
- Specified by:
getSliceObjin classDoubleMatrix3D<R,C, S>
-
isMissing
public boolean isMissing(int slice, int row, int col) Description copied from interface:Matrix3DCheck if the value at a given index is missing. -
numMissing
public int numMissing()Description copied from interface:Matrix3DReturn the number of missing values in the matrix.- Specified by:
numMissingin interfaceMatrix3D<R,C, S, Double> - Specified by:
numMissingin classAbstractMatrix3D<R,C, S, Double> - Returns:
- number missing
-
rows
public int rows()Description copied from interface:Matrix3DGet the number of rows the matrix has -
set
public void set(int slice, int row, int col, double val) - Specified by:
setin classDoubleMatrix3D<R,C, S>
-
setQuick
public void setQuick(int slice, int row, int column, double c) - Specified by:
setQuickin classDoubleMatrix3D<R,C, S> - Parameters:
c-
-
slices
public int slices() -
viewColumn
- Specified by:
viewColumnin classDoubleMatrix3D<R,C, S>
-
viewRow
- Specified by:
viewRowin classDoubleMatrix3D<R,C, S> - Returns:
-
viewSlice
- Specified by:
viewSlicein classDoubleMatrix3D<R,C, S>
-