public class DoubleFlatDenseMatrix extends AbstractDenseMatrix implements DoubleDenseMatrix, Serializable
Double flat dense matrix which provides options of storing data to disk in binary manner or text manner
Copyright: Copyright (c) 2005
Company: IST, Drexel University
cellDataLength, columnBase, columns, rowBase, rows, transposeMatrix| Constructor and Description |
|---|
DoubleFlatDenseMatrix(double[][] newMatrix) |
DoubleFlatDenseMatrix(int row,
int column) |
DoubleFlatDenseMatrix(String filename) |
DoubleFlatDenseMatrix(String filename,
boolean binaryFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int row,
int column,
double score) |
void |
assign(double val)
Assign the same given score to all cells of the matrix
|
void |
close()
Close the matrix and release all resources.
|
double |
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.
|
double |
getRowSum(int row) |
void |
print(PrintWriter out) |
void |
saveTo(String filename) |
void |
saveTo(String filename,
boolean binary) |
boolean |
setDouble(int row,
int column,
double 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 DoubleFlatDenseMatrix(double[][] newMatrix)
public DoubleFlatDenseMatrix(int row,
int column)
public DoubleFlatDenseMatrix(String filename)
public DoubleFlatDenseMatrix(String filename, boolean binaryFile)
public void assign(double val)
DoubleDenseMatrixassign in interface DoubleDenseMatrixval - the scorepublic boolean add(int row,
int column,
double score)
add in interface DoubleDenseMatrixpublic boolean setDouble(int row,
int column,
double score)
setDouble in interface DoubleDenseMatrixpublic double getRowSum(int row)
getRowSum in interface DoubleDenseMatrixrow - the index of the rowpublic double getColumnSum(int column)
getColumnSum in interface DoubleDenseMatrixcolumn - 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.