C# 클래스 MyMediaLite.Correlation.BinaryCosine

Class for storing cosine similarities
http://en.wikipedia.org/wiki/Cosine_similarity
상속: BinaryDataCorrelationMatrix
파일 보기 프로젝트 열기: zenogantner/MML-KDD 1 사용 예제들

공개 메소드들

메소드 설명
BinaryCosine ( CorrelationMatrix correlation_matrix ) : System

Copy constructor. Creates an object of type Cosine from an existing correlation matrix

BinaryCosine ( int num_entities ) : System

Creates an object of type Cosine

ComputeCorrelation ( HashSet vector_i, HashSet vector_j ) : float

Computes the cosine similarity of two binary vectors

ComputeCorrelations ( IBooleanMatrix entity_data ) : void
Create ( IBooleanMatrix vectors ) : CorrelationMatrix

Creates a Cosine similarity matrix from given data

메소드 상세

BinaryCosine() 공개 메소드

Copy constructor. Creates an object of type Cosine from an existing correlation matrix
public BinaryCosine ( CorrelationMatrix correlation_matrix ) : System
correlation_matrix CorrelationMatrix the correlation matrix to copy
리턴 System

BinaryCosine() 공개 메소드

Creates an object of type Cosine
public BinaryCosine ( int num_entities ) : System
num_entities int the number of entities
리턴 System

ComputeCorrelation() 공개 정적인 메소드

Computes the cosine similarity of two binary vectors
public static ComputeCorrelation ( HashSet vector_i, HashSet vector_j ) : float
vector_i HashSet the first vector
vector_j HashSet the second vector
리턴 float

ComputeCorrelations() 공개 메소드

public ComputeCorrelations ( IBooleanMatrix entity_data ) : void
entity_data IBooleanMatrix
리턴 void

Create() 공개 정적인 메소드

Creates a Cosine similarity matrix from given data
public static Create ( IBooleanMatrix vectors ) : CorrelationMatrix
vectors IBooleanMatrix the boolean data
리턴 CorrelationMatrix