C# 클래스 MyMediaLite.Correlation.Jaccard

Class for storing and computing the Jaccard index (Tanimoto coefficient)
The Jaccard index is often also called the Tanimoto coefficient. http://en.wikipedia.org/wiki/Jaccard_index
상속: MyMediaLite.Correlation.BinaryDataSymmetricCorrelationMatrix
파일 보기 프로젝트 열기: zenogantner/MML-KDD 1 사용 예제들

공개 메소드들

메소드 설명
ComputeCorrelation ( HashSet vector_i, HashSet vector_j ) : float

Computes the Jaccard index of two binary vectors

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

Creates a Jaccard index matrix from given data

Jaccard ( CorrelationMatrix correlation_matrix ) : System

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

Jaccard ( int num_entities ) : System

Creates an object of type Jaccard

메소드 상세

ComputeCorrelation() 공개 정적인 메소드

Computes the Jaccard index 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 Jaccard index matrix from given data
public static Create ( IBooleanMatrix vectors ) : CorrelationMatrix
vectors IBooleanMatrix the boolean data
리턴 CorrelationMatrix

Jaccard() 공개 메소드

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

Jaccard() 공개 메소드

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