fx_PAS: Calculate PAS score to measure clustering performance.

View source: R/SpatialPCA_utilties.R

fx_PASR Documentation

Calculate PAS score to measure clustering performance.

Description

PAS score measures the randomness of the spots that located outside of the spatial region where it was clustered to. Lower PAS score indicates better spatial domian clustering performance.

Usage

fx_PAS(clusterlabel, location)

Arguments

clusterlabel

Cluster labels.

location

A n by k matrix of spatial locations.

Value

A numeric value for PAS score.


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