public abstract class AbstractDenseMatrix extends AbstractMatrix implements DenseMatrix, Serializable
Implements basic functions of interface--DenseMatrix and extends class AbstractMatrix
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
cellDataLength, columnBase, columns, rowBase, rows, transposeMatrix| Constructor and Description |
|---|
AbstractDenseMatrix(int row,
int column,
int cellDataLength) |
| Modifier and Type | Method and Description |
|---|---|
double |
cosine(int rowA,
int rowB)
This method treats each row a vector and return the cosine similarity of two rows.
|
int |
getCooccurrenceCount(int rowA,
int rowB)
If two cells in the same column have non-zero scores, they will be counted as co-occurred.
|
columns, getBaseColumn, getBaseRow, getCellDataLength, getTranspose, rows, setTranspose, transposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, columns, getBaseColumn, getBaseRow, getCellDataLength, getDouble, getInt, getTranspose, rows, setTranspose, transposepublic AbstractDenseMatrix(int row,
int column,
int cellDataLength)
public double cosine(int rowA,
int rowB)
Matrixpublic int getCooccurrenceCount(int rowA,
int rowB)
MatrixgetCooccurrenceCount in interface MatrixrowA - the index of the first rowrowB - the index of the second rowCopyright © 2018 JULIE Lab, Germany. All rights reserved.