Class DoubleMatrix3D<R,C,S>
java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix3D<R,C,S,Double>
ubic.basecode.dataStructure.matrix.DoubleMatrix3D<R,C,S>
- Type Parameters:
R- Row label typeC- Column label typeS- Slice label type
- Direct Known Subclasses:
DenseDouble3dMatrix
TODO Document Me
- Author:
- Xwan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intFields inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
colMap, colNames, rowMap, rowNames, sliceMap, sliceNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubleget(int slice, int row, int column) abstract Double[][]getColObj(int col) abstract double[][]getColumn(int column) double[][]getColumnByName(C col) abstract double[][]getRow(int row) double[][]getRowByName(R row) abstract Double[][]getRowObj(int row) abstract double[][]getSlice(int slice) double[][]getSliceByName(S slice) abstract Double[][]getSliceObj(int slice) abstract booleanisMissing(int slice, int row, int col) Check if the value at a given index is missing.abstract introws()Get the number of rows the matrix hasabstract voidset(int x, int y, int z, double value) abstract voidsetQuick(int slice, int row, int column, double c) abstract intslices()toString()abstract DoubleMatrix2DviewColumn(int column) abstract DoubleMatrix2DviewRow(int slice) abstract DoubleMatrix2DviewSlice(int slice) Methods inherited from class ubic.basecode.dataStructure.matrix.AbstractMatrix3D
addColumnName, addRowName, addSliceName, columns, containsColumnName, containsRowName, containsSliceName, getColIndexByName, getColName, getColNameIterator, getColNames, getRowIndexByName, getRowName, getRowNameIterator, getRowNames, getSliceIndexByName, getSliceName, getSliceNameIterator, getSliceNames, hasColNames, hasRow, hasRowNames, hasSliceNames, numMissing, setColumnNames, setRowNames, setSliceNames
-
Field Details
-
MAX_ROWS_TO_PRINT
protected static final int MAX_ROWS_TO_PRINT- See Also:
-
MAX_SLICES_TO_PRINT
protected static final int MAX_SLICES_TO_PRINT- See Also:
-
-
Constructor Details
-
DoubleMatrix3D
public DoubleMatrix3D()
-
-
Method Details
-
get
public abstract double get(int slice, int row, int column) -
getColObj
-
getColumn
public abstract double[][] getColumn(int column) -
getColumnByName
- Parameters:
s- String- Returns:
- double[]
-
getRow
public abstract double[][] getRow(int row) -
getRowByName
- Parameters:
s- String- Returns:
- double[]
-
getRowObj
-
getSlice
public abstract double[][] getSlice(int slice) -
getSliceByName
-
getSliceObj
-
isMissing
public abstract boolean isMissing(int slice, int row, int col) Description copied from interface:Matrix3DCheck if the value at a given index is missing. -
rows
public abstract int rows()Description copied from interface:Matrix3DGet the number of rows the matrix has -
set
public abstract void set(int x, int y, int z, double value) -
setQuick
public abstract void setQuick(int slice, int row, int column, double c) - Parameters:
c-j-i-
-
slices
public abstract int slices() -
toString
-
viewColumn
-
viewRow
- Parameters:
j-- Returns:
-
viewSlice
-