CellGini: Calculate the Gini index for the cells according to the...

View source: R/CellGini.R

CellGiniR Documentation

Calculate the Gini index for the cells according to the feature counts.

Description

Calculate the Gini index for the cells according to the feature counts.

Usage

CellGini(x, normalize = TRUE)

Arguments

x

A sparse matrix which columns represent cells and rows represent features.

normalize

If TRUE, CellGini will add a number which represent the max Gini value when given the same counts.

Value

A vector of the cell entropy rate.

Examples

x <- simSimpleCounts()
CG <- CellGini(x, normalize = TRUE)
head(CG)

zh542370159/dropSplit documentation built on June 19, 2022, 2:49 p.m.