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

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.

Value

A scalar which is the spread measure of the graph.

Details

How it is computed

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