public class IntFlatDenseMatrix extends AbstractDenseMatrix implements IntDenseMatrix, Serializable
Flat dense matrix for integer data
Copyright: Copyright (c) 2005
Company: IST, Drexel University
cellDataLength, columnBase, columns, rowBase, rows, transposeMatrix| Constructor and Description |
|---|
IntFlatDenseMatrix(int[][] newMatrix) |
IntFlatDenseMatrix(int row,
int column) |
IntFlatDenseMatrix(String filename) |
IntFlatDenseMatrix(String filename,
boolean binaryFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int row,
int column,
int score) |
void |
assign(int val)
Assign the same given score to all cells of the matrix
|
void |
close()
Close the matrix and release all resources.
|
long |
getColumnSum(int column) |
double |
getDouble(int row,
int column)
Return the score stored in the specified cell.
|
int |
getInt(int row,
int column)
Return the score stored in the specified cell.
|
long |
getRowSum(int row) |
void |
print(PrintWriter out) |
void |
saveTo(String filename) |
void |
saveTo(String filename,
boolean binary) |
boolean |
setInt(int row,
int column,
int score) |
cosine, getCooccurrenceCountcolumns, getBaseColumn, getBaseRow, getCellDataLength, getTranspose, rows, setTranspose, transposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcolumns, cosine, getBaseColumn, getBaseRow, getCellDataLength, getCooccurrenceCount, getTranspose, rows, setTranspose, transposepublic IntFlatDenseMatrix(int[][] newMatrix)
public IntFlatDenseMatrix(int row,
int column)
public IntFlatDenseMatrix(String filename)
public IntFlatDenseMatrix(String filename, boolean binaryFile)
public void assign(int val)
IntDenseMatrixassign in interface IntDenseMatrixval - the scorepublic boolean add(int row,
int column,
int score)
add in interface IntDenseMatrixpublic boolean setInt(int row,
int column,
int score)
setInt in interface IntDenseMatrixpublic long getRowSum(int row)
getRowSum in interface IntDenseMatrixrow - the index of the rowpublic long getColumnSum(int column)
getColumnSum in interface IntDenseMatrixcolumn - the index of the columnpublic int getInt(int row,
int column)
Matrixpublic double getDouble(int row,
int column)
Matrixpublic void saveTo(String filename, boolean binary)
public void saveTo(String filename)
public void print(PrintWriter out)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.