spread_measure: Spread measure function

View source: R/evaluation.R

spread_measureR Documentation

Spread measure function

Description

spread_measure measures how data points from the same groups concentrate in the network.

Usage

spread_measure(obj_mapper, group_ind)

Arguments

obj_mapper

An object of class TDAmapper.

group_ind

A vector of group names each of the samples belongs to.

Details

How it is computed

Value

A scalar which is the spread measure of the graph.

Examples

tp_data <- chicken_generator(1)
tp_data_mapper <- mapper.sta(dat = tp_data[,2:4],
                               filter_values = tp_data$Y,
                               num_intervals = 10,
                               percent_overlap = 70)
tp_spread <- spread_measure(tp_data_mapper, tp_data$Group)
tp_spread


TianshuFeng/SemiMapper documentation built on Sept. 16, 2022, 10:26 p.m.