C# 클래스 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.
상속: IBooleanMatrix
파일 보기 프로젝트 열기: zenogantner/MML-KDD 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CreateMatrix() 공개 메소드

public CreateMatrix ( int x, int y ) : IMatrix
x int
y int
리턴 IMatrix

GetEntriesByColumn() 공개 메소드

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
리턴 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() 공개 메소드

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
리턴 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() 공개 메소드

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
리턴 bool