public class IntGiantSparseMatrix extends AbstractGiantSparseMatrix implements IntSparseMatrix
Giant sparse matrix for extreme large integer matrix
Copyright: Copyright (c) 2005
Company: IST, Drexel University
cacheMatrix, flushInterval, indexFilename, matrixFactory, matrixFilename, rafIndex, rafMatrix, totalCellisFinalized, mergeMode, miniModecellDataLength, columnBase, columns, rowBase, rows, transposeMatrix| Constructor and Description |
|---|
IntGiantSparseMatrix(String indexFile,
String matrixFile) |
IntGiantSparseMatrix(String indexFile,
String matrixFile,
boolean mergeMode,
boolean miniMode) |
| 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.
|
protected AbstractFlatSparseMatrix |
createFlatSparseMatrix(boolean mergeMode,
boolean miniMode) |
protected Row |
createRow(int row,
int columns,
byte[] data) |
SparseMatrix |
createSparseMatrix()
This method return an empty sparse matrix with the same implemented type as the current matrix.
|
long |
getColumnSum(int column) |
int |
getInt(int row,
int column)
Return the score stored in the specified cell.
|
double[] |
getNonZeroDoubleScoresInRow(int row)
If the given row has n non-zero cells, this method returns a n-length double array.
|
int |
getNonZeroIntScoreInRow(int row,
int index)
This method returns the integer score of the index-th non-zero cell in the given row.
|
int[] |
getNonZeroIntScoresInRow(int row)
If the given row has n non-zero cells, this method returns a n-length integer array.
|
long |
getRowSum(int row) |
add, close, finalizeData, flush, getCell, getIndexFilename, getMatrixFilename, getNonZeroCellInRow, getNonZeroColumnInRow, getNonZeroColumnsInRow, getNonZeroNum, getNonZeroNumInRow, getRow, setFlushIntervalcosine, finalizeData, genCooccurrenceMatrix, genCooccurrenceMatrix, genCooccurrenceMatrix, genTranslationMatrix, getCooccurrenceCount, getDouble, getNonZeroCellInColumn, getNonZeroDoubleScoreInColumn, getNonZeroDoubleScoreInRow, getNonZeroDoubleScoresInColumn, getNonZeroIntScoreInColumn, getNonZeroIntScoresInColumn, 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, getNonZeroIntScoreInColumn, getNonZeroIntScoresInColumn, getNonZeroNum, getNonZeroNumInColumn, getNonZeroNumInRow, getNonZeroRowInColumn, getNonZeroRowsInColumn, isFinalizedclose, columns, cosine, getBaseColumn, getBaseRow, getCellDataLength, getCooccurrenceCount, getDouble, getTranspose, rows, setTranspose, transposepublic SparseMatrix createSparseMatrix()
SparseMatrixcreateSparseMatrix in interface SparseMatrixprotected AbstractFlatSparseMatrix createFlatSparseMatrix(boolean mergeMode, boolean miniMode)
createFlatSparseMatrix in class AbstractGiantSparseMatrixprotected Row createRow(int row, int columns, byte[] data)
createRow in class AbstractGiantSparseMatrixpublic 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 int getInt(int row,
int column)
MatrixgetInt in interface MatrixgetInt in class AbstractSparseMatrixrow - the row index of the cellcolumn - the column index of the cellpublic int getNonZeroIntScoreInRow(int row,
int index)
SparseMatrixgetNonZeroIntScoreInRow in interface SparseMatrixgetNonZeroIntScoreInRow in class AbstractSparseMatrixrow - the index of the row.index - the index-th non-zero cellpublic int[] getNonZeroIntScoresInRow(int row)
SparseMatrixgetNonZeroIntScoresInRow in interface SparseMatrixgetNonZeroIntScoresInRow in class AbstractSparseMatrixrow - the index of rowpublic double[] getNonZeroDoubleScoresInRow(int row)
SparseMatrixgetNonZeroDoubleScoresInRow in interface SparseMatrixgetNonZeroDoubleScoresInRow in class AbstractSparseMatrixrow - the index of rowpublic 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.