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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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