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
파일 보기 프로젝트 열기: zenogantner/MML-KDD 1 사용 예제들

공개 메소드들

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