C# Class MyMediaLite.DataType.SparseBooleanMatrix

Sparse representation of a boolean matrix, using HashSets
Fast row-wise access is possible. Indexes are zero-based. If you need a more memory-efficient data structure, try SparseBooleanMatrixBinarySearch or SparseBooleanMatrixStatic.
Inheritance: IBooleanMatrix
Afficher le fichier Open project: zenogantner/MML-KDD Class Usage Examples

Méthodes publiques

Méthode Description
CreateMatrix ( int x, int y ) : IMatrix
GetEntriesByColumn ( int column_id ) : IList Takes O(N) worst-case time, where N is the number of rows, if the internal hash table can be queried in constant time.
GetEntriesByRow ( int row_id ) : IList
NumEntriesByColumn ( int column_id ) : int
NumEntriesByRow ( int row_id ) : int
Overlap ( IBooleanMatrix s ) : int

Get the overlap of two matrices, i.e. the number of true entries where they agree

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

Indexer to access the elements of the matrix

Method Details

CreateMatrix() public méthode

public CreateMatrix ( int x, int y ) : IMatrix
x int
y int
Résultat IMatrix

GetEntriesByColumn() public méthode

Takes O(N) worst-case time, where N is the number of rows, if the internal hash table can be queried in constant time.
public GetEntriesByColumn ( int column_id ) : IList
column_id int
Résultat IList

GetEntriesByRow() public méthode

public GetEntriesByRow ( int row_id ) : IList
row_id int
Résultat IList

NumEntriesByColumn() public méthode

public NumEntriesByColumn ( int column_id ) : int
column_id int
Résultat int

NumEntriesByRow() public méthode

public NumEntriesByRow ( int row_id ) : int
row_id int
Résultat int

Overlap() public méthode

Get the overlap of two matrices, i.e. the number of true entries where they agree
public Overlap ( IBooleanMatrix s ) : int
s IBooleanMatrix the to compare to
Résultat int

RemoveColumn() public méthode

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
Résultat void

Transpose() public méthode

Get the transpose of the matrix, i.e. a matrix where rows and columns are interchanged
public Transpose ( ) : IMatrix
Résultat IMatrix

this() public méthode

public this ( int x ) : ICollection
x int
Résultat ICollection

this() public méthode

Indexer to access the elements of the matrix
public this ( int x, int y ) : bool
x int the row ID
y int the column ID
Résultat bool