propHomotypic: propHomotypic

View source: R/misc.R

propHomotypicR Documentation

propHomotypic

Description

Computes the proportion of pairs expected to be made of elements from the same cluster.

Usage

propHomotypic(clusters)

Arguments

clusters

A vector of cluster labels

Value

A numeric value between 0 and 1.

Examples

clusters <- sample(LETTERS[1:5], 100, replace=TRUE)
propHomotypic(clusters)

plger/scDblFinder documentation built on Oct. 19, 2024, 6:26 a.m.