C# Класс MyMediaLite.DataType.SparseBooleanMatrixStatic

Sparse representation of a boolean matrix, using binary search (memory efficient)
Fast row-wise access is possible. Indexes are zero-based.
Наследование: IBooleanMatrix
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateMatrix ( int x, int y ) : IMatrix
GetEntriesByColumn ( int column_id ) : IList Takes O(N log(M)) worst-case time, where N is the number of rows and M is the number of columns.
GetEntriesByRow ( int row_id ) : IList
NumEntriesByColumn ( int column_id ) : int
NumEntriesByRow ( int row_id ) : int
Overlap ( IBooleanMatrix s ) : int
RemoveColumn ( int y ) : void

Removes a column, and fills the gap by decrementing all occurrences of higher column IDs by one

Transpose ( ) : IMatrix

Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged

this ( int x ) : ICollection
this ( int x, int y ) : bool

Описание методов

CreateMatrix() публичный Метод

public CreateMatrix ( int x, int y ) : IMatrix
x int
y int
Результат IMatrix

GetEntriesByColumn() публичный Метод

Takes O(N log(M)) worst-case time, where N is the number of rows and M is the number of columns.
public GetEntriesByColumn ( int column_id ) : IList
column_id int
Результат IList

GetEntriesByRow() публичный Метод

public GetEntriesByRow ( int row_id ) : IList
row_id int
Результат IList

NumEntriesByColumn() публичный Метод

public NumEntriesByColumn ( int column_id ) : int
column_id int
Результат int

NumEntriesByRow() публичный Метод

public NumEntriesByRow ( int row_id ) : int
row_id int
Результат int

Overlap() публичный Метод

public Overlap ( IBooleanMatrix s ) : int
s IBooleanMatrix
Результат int

RemoveColumn() публичный Метод

Removes a column, and fills the gap by decrementing all occurrences of higher column IDs by one
public RemoveColumn ( int y ) : void
y int the column ID
Результат void

Transpose() публичный Метод

Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
public Transpose ( ) : IMatrix
Результат IMatrix

this() публичный Метод

public this ( int x ) : ICollection
x int
Результат ICollection

this() публичный Метод

public this ( int x, int y ) : bool
x int
y int
Результат bool