jaccard_coeff: Compute jaccard coefficient between nearest-neighbor sets

View source: R/RcppExports.R

jaccard_coeffR Documentation

Compute jaccard coefficient between nearest-neighbor sets

Description

Weights of both i->j and j->i are recorded if they have intersection. In this case w(i->j) should be equal to w(j->i). In some case i->j has weights while j<-i has no intersections, only w(i->j) is recorded. This is determinded in code 'if(u>0)'. In this way, the undirected graph is symmetrized by halfing the weight in code 'weights(r, 2) = u/(2.0*ncol - u)/2'.

Usage

jaccard_coeff(idx)

Arguments

idx

NumericMatrix

Details

Author: Chen Hao, Date: 25/09/2015 Copied from https://github.com/JinmiaoChenLab/Rphenograph/blob/master/src/jaccard_coeff.cpp for use in briDiscovr on 200611 under the Artistic-2.0 license

Value

NumericMatrix


BenaroyaResearch/briDiscovr documentation built on June 14, 2024, 12:29 p.m.