public class IntFlatSparseMatrix extends AbstractFlatSparseMatrix implements IntSparseMatrix, Serializable
Flat sparse matrix for integer data
Copyright: Copyright (c) 2005
Company: IST, Drexel University
listisFinalized, mergeMode, miniModecellDataLength, columnBase, columns, rowBase, rows, transposeMatrix| Constructor and Description |
|---|
IntFlatSparseMatrix() |
IntFlatSparseMatrix(boolean mergeMode,
boolean miniMode) |
IntFlatSparseMatrix(String filename) |
IntFlatSparseMatrix(String filename,
boolean binaryFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int row,
int column,
int score)
It is equal to create an integer 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.
|
long |
getColumnSum(int column) |
long |
getRowSum(int row) |
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 IntFlatSparseMatrix()
public IntFlatSparseMatrix(boolean mergeMode,
boolean miniMode)
public IntFlatSparseMatrix(String filename)
public IntFlatSparseMatrix(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,
int score)
IntSparseMatrixadd in interface IntSparseMatrixrow - the row of the cellcolumn - the column of the cellscore - the score of the cellpublic long getRowSum(int row)
getRowSum in interface IntSparseMatrixrow - the index of the rowpublic long getColumnSum(int column)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.