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_PRINT
Fields 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 TypeMethodDescriptionint
columns()
Get the number of columns the matrix has.double
get
(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) boolean
isMissing
(int slice, int row, int col) Check if the value at a given index is missing.int
Return the number of missing values in the matrix.int
rows()
Get the number of rows the matrix hasvoid
set
(int slice, int row, int col, double val) void
setQuick
(int slice, int row, int column, double c) int
slices()
viewColumn
(int column) viewRow
(int row) viewSlice
(int slice) Methods inherited from class ubic.basecode.dataStructure.matrix.DoubleMatrix3D
getColumnByName, getRowByName, getSliceByName, toString
Methods 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:Matrix3D
Get the number of columns the matrix has. -
get
public double get(int i, int j, int k) - Specified by:
get
in classDoubleMatrix3D<R,
C, S>
-
getColObj
- Specified by:
getColObj
in classDoubleMatrix3D<R,
C, S>
-
getColumn
public double[][] getColumn(int col) - Specified by:
getColumn
in classDoubleMatrix3D<R,
C, S>
-
getObject
-
getRow
public double[][] getRow(int row) - Specified by:
getRow
in classDoubleMatrix3D<R,
C, S>
-
getRowObj
- Specified by:
getRowObj
in classDoubleMatrix3D<R,
C, S>
-
getSlice
public double[][] getSlice(int slice) - Specified by:
getSlice
in classDoubleMatrix3D<R,
C, S>
-
getSliceObj
- Specified by:
getSliceObj
in classDoubleMatrix3D<R,
C, S>
-
isMissing
public boolean isMissing(int slice, int row, int col) Description copied from interface:Matrix3D
Check if the value at a given index is missing. -
numMissing
public int numMissing()Description copied from interface:Matrix3D
Return the number of missing values in the matrix.- Specified by:
numMissing
in interfaceMatrix3D<R,
C, S, Double> - Specified by:
numMissing
in classAbstractMatrix3D<R,
C, S, Double> - Returns:
- number missing
-
rows
public int rows()Description copied from interface:Matrix3D
Get the number of rows the matrix has -
set
public void set(int slice, int row, int col, double val) - Specified by:
set
in classDoubleMatrix3D<R,
C, S>
-
setQuick
public void setQuick(int slice, int row, int column, double c) - Specified by:
setQuick
in classDoubleMatrix3D<R,
C, S> - Parameters:
c
-
-
slices
public int slices() -
viewColumn
- Specified by:
viewColumn
in classDoubleMatrix3D<R,
C, S>
-
viewRow
- Specified by:
viewRow
in classDoubleMatrix3D<R,
C, S> - Returns:
-
viewSlice
- Specified by:
viewSlice
in classDoubleMatrix3D<R,
C, S>
-