public class DoubleFlatSparseMatrix extends AbstractFlatSparseMatrix implements DoubleSparseMatrix, Serializable
Double flat sparse matrix handles data smaller than super sparse matrix, however it provides options of storing data to disk either in binary or text format
Copyright: Copyright (c) 2005
Company: IST, Drexel University
listisFinalized, mergeMode, miniModecellDataLength, columnBase, columns, rowBase, rows, transposeMatrix| Constructor and Description |
|---|
DoubleFlatSparseMatrix() |
DoubleFlatSparseMatrix(boolean mergeMode,
boolean miniMode) |
DoubleFlatSparseMatrix(String filename) |
DoubleFlatSparseMatrix(String filename,
boolean binaryFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int row,
int column,
double value)
It is equal to create a double cell and then add the cell to the sparse matrix.
|
Cell |
createCell(int row,
int column,
byte[] data)
This method will be called when the sparse matrix loads data from a binary file.
|
Cell |
createCell(int row,
int column,
String data)
This method will be called when the sparse matrix loads data from a text file.
|
SparseMatrix |
createSparseMatrix()
This method return an empty sparse matrix with the same implemented type as the current matrix.
|
double |
get(int row,
int column) |
double |
getColumnSum(int column) |
double |
getQuick(int row,
int column) |
double |
getRowSum(int row) |
void |
normalizeColumns() |
void |
normalizeRows() |
DoubleDenseMatrix |
product(DoubleDenseMatrix b) |
DoubleDenseMatrix |
product(DoubleFlatSparseMatrix matrixY) |
void |
set(int row,
int column,
double score) |
void |
setQuick(int row,
int column,
double score) |
add, close, finalizeData, flush, getCell, getNonZeroCell, getNonZeroCellInRow, getNonZeroColumnInRow, getNonZeroColumnsInRow, getNonZeroNum, getNonZeroNumInRow, getRowEnd, getRowStart, print, readBinaryMatrixFile, readTextMatrixFile, saveTo, saveTo, setDouble, setInt, setNonZeroDoubleScoreInRow, setNonZeroIntScoreInRowcosine, finalizeData, genCooccurrenceMatrix, genCooccurrenceMatrix, genCooccurrenceMatrix, genTranslationMatrix, getCooccurrenceCount, getDouble, getInt, getNonZeroCellInColumn, getNonZeroDoubleScoreInColumn, getNonZeroDoubleScoreInRow, getNonZeroDoubleScoresInColumn, getNonZeroDoubleScoresInRow, getNonZeroIntScoreInColumn, getNonZeroIntScoreInRow, getNonZeroIntScoresInColumn, getNonZeroIntScoresInRow, getNonZeroNumInColumn, getNonZeroRowInColumn, getNonZeroRowsInColumn, isFinalized, transposecolumns, getBaseColumn, getBaseRow, getCellDataLength, getTranspose, rows, setTransposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, finalizeData, finalizeData, flush, genCooccurrenceMatrix, genCooccurrenceMatrix, genCooccurrenceMatrix, getCell, getNonZeroCellInColumn, getNonZeroCellInRow, getNonZeroColumnInRow, getNonZeroColumnsInRow, getNonZeroDoubleScoreInColumn, getNonZeroDoubleScoreInRow, getNonZeroDoubleScoresInColumn, getNonZeroDoubleScoresInRow, getNonZeroIntScoreInColumn, getNonZeroIntScoreInRow, getNonZeroIntScoresInColumn, getNonZeroIntScoresInRow, getNonZeroNum, getNonZeroNumInColumn, getNonZeroNumInRow, getNonZeroRowInColumn, getNonZeroRowsInColumn, isFinalizedclose, columns, cosine, getBaseColumn, getBaseRow, getCellDataLength, getCooccurrenceCount, getDouble, getInt, getTranspose, rows, setTranspose, transposepublic DoubleFlatSparseMatrix()
public DoubleFlatSparseMatrix(boolean mergeMode,
boolean miniMode)
public DoubleFlatSparseMatrix(String filename)
public DoubleFlatSparseMatrix(String filename, boolean binaryFile)
public SparseMatrix createSparseMatrix()
SparseMatrixcreateSparseMatrix in interface SparseMatrixpublic Cell createCell(int row, int column, byte[] data)
SparseMatrixcreateCell in interface SparseMatrixrow - the row index of the cellcolumn - the column index of the celldata - the input data for the cellpublic Cell createCell(int row, int column, String data)
SparseMatrixcreateCell in interface SparseMatrixrow - the row index of the cellcolumn - the column index of the celldata - the input data for the cellpublic boolean add(int row,
int column,
double value)
DoubleSparseMatrixadd in interface DoubleSparseMatrixrow - the row of the cellcolumn - the column of the cellvalue - the score of the cellpublic double get(int row,
int column)
public void set(int row,
int column,
double score)
public double getQuick(int row,
int column)
public void setQuick(int row,
int column,
double score)
public double getRowSum(int row)
getRowSum in interface DoubleSparseMatrixrow - the index of the rowpublic double getColumnSum(int column)
public void normalizeColumns()
public void normalizeRows()
public DoubleDenseMatrix product(DoubleFlatSparseMatrix matrixY)
public DoubleDenseMatrix product(DoubleDenseMatrix b)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.