|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBooleanMatrix
Interface for boolean matrices.
Method Summary | |
---|---|
IntCollection |
get(int x)
Get a row of the matrix. |
IntList |
getEntriesByColumn(int column_id)
Get all true entries (row IDs) of a column. |
IntList |
getEntriesByRow(int row_id)
Get all true entries (column IDs) of a row. |
IntCollection |
nonEmptyColumnIDs()
The IDs of the non-empty columns in the matrix (the ones that contain at least one true entry). |
IntCollection |
nonEmptyRowIDs()
The IDs of the non-empty rows in the matrix (the ones that contain at least one true entry). |
int |
numberOfEntries()
The number of (true) entries. |
int |
numEntriesByColumn(int column_id)
Get all the number of entries in a column. |
int |
numEntriesByRow(int row_id)
Get all the number of entries in a row. |
int |
overlap(IBooleanMatrix s)
Get the overlap of two matrices, i.e. |
Methods inherited from interface org.mymedialite.datatype.IMatrix |
---|
createMatrix, get, grow, isSymmetric, numberOfColumns, numberOfRows, set, transpose |
Method Detail |
---|
IntCollection get(int x)
x
- the row IDint numberOfEntries()
IntCollection nonEmptyRowIDs()
IntCollection nonEmptyColumnIDs()
IntList getEntriesByRow(int row_id)
row_id
- the row ID
int numEntriesByRow(int row_id)
row_id
- the row ID
IntList getEntriesByColumn(int column_id)
column_id
- the column ID
int numEntriesByColumn(int column_id)
column_id
- the column ID
int overlap(IBooleanMatrix s)
s
- the
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |