fx_CHAOS: Calculate CHAOS score to measure clustering performance.

View source: R/SpatialPCA_utilties.R

fx_CHAOSR Documentation

Calculate CHAOS score to measure clustering performance.

Description

CHAOS score measures the spatial continuity of the detected spatial domains. Lower CHAOS score indicates better spatial domian clustering performance.

Usage

fx_CHAOS(clusterlabel, location)

Arguments

clusterlabel

Cluster labels.

location

A n by k matrix of spatial locations.

Value

A numeric value for CHAOS score.


shangll123/SpatialPCA documentation built on April 17, 2024, 3:15 a.m.