PersistenceTrace

class fast_plscan.plots.PersistenceTrace(trace)

A trace of total leaf cluster persistence across size thresholds.

For each tested minimum cluster size value, this object stores the total persistence contribution of all leaf clusters alive at that threshold. It can be exported with to_numpy and to_pandas or visualized with plot.

Parameters:

trace (PersistenceTrace) – The total persistence trace as produced internally.

Methods

plot([line_kws])

Plots the total persistence trace.

to_numpy()

Returns a numpy array of the persistence trace.

to_pandas()

Returns a pandas dataframe representation of the persistence trace.