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>
-
public class DenseDouble3dMatrix<R,C,S> extends DoubleMatrix3D<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
Constructors Constructor Description DenseDouble3dMatrix(double[][][] data)DenseDouble3dMatrix(double[][][] data, List<S> sliceNames, List<R> rowNames, List<C> colNames)DenseDouble3dMatrix(int slices, int rows, int columns)DenseDouble3dMatrix(List<S> sliceNames, List<R> rowNames, List<C> colNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumns()Get the number of columns the matrix has.doubleget(int i, int j, int k)Double[][]getColObj(int col)double[][]getColumn(int col)DoublegetObject(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.intnumMissing()Return 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()cern.colt.matrix.DoubleMatrix2DviewColumn(int column)cern.colt.matrix.DoubleMatrix2DviewRow(int row)cern.colt.matrix.DoubleMatrix2DviewSlice(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
-
-
-
-
Method Detail
-
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
public Double[][] getColObj(int col)
- Specified by:
getColObjin classDoubleMatrix3D<R,C,S>
-
getColumn
public double[][] getColumn(int col)
- Specified by:
getColumnin classDoubleMatrix3D<R,C,S>
-
getObject
public Double getObject(int slice, int row, int col)
-
getRow
public double[][] getRow(int row)
- Specified by:
getRowin classDoubleMatrix3D<R,C,S>
-
getRowObj
public Double[][] getRowObj(int row)
- Specified by:
getRowObjin classDoubleMatrix3D<R,C,S>
-
getSlice
public double[][] getSlice(int slice)
- Specified by:
getSlicein classDoubleMatrix3D<R,C,S>
-
getSliceObj
public Double[][] getSliceObj(int slice)
- 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>
-
slices
public int slices()
-
viewColumn
public cern.colt.matrix.DoubleMatrix2D viewColumn(int column)
- Specified by:
viewColumnin classDoubleMatrix3D<R,C,S>
-
viewRow
public cern.colt.matrix.DoubleMatrix2D viewRow(int row)
- Specified by:
viewRowin classDoubleMatrix3D<R,C,S>- Returns:
-
viewSlice
public cern.colt.matrix.DoubleMatrix2D viewSlice(int slice)
- Specified by:
viewSlicein classDoubleMatrix3D<R,C,S>
-
-