grouping
Module for handling performing Agglomerative Hierarchical Clustering Algorithm.
Based on ‘Detection of Intensity Change Points in Time-Resolved Single-Molecule Measurements’ from Watkins nad Yang, J. Phys. Chem. B 2005, 109, 617-628 (http://pubs.acs.org/doi/abs/10.1021/jp0467548)
Joshua Botha University of Pretoria 2018
Module Contents
Classes
Class for executing Agglomerative Hierarchical Clustering Algorithm and storing the results. |
|
Functions
|
Finds the j and m index for the max value. |
Attributes
- class grouping.Group(lvls_inds: List[int_p_s] = None, particle: smsh5.Particle = None, group_ind: int = None)[source]
- class grouping.ClusteringStep(particle: smsh5.Particle, first: bool = False, seed_groups: List[Group] = None, single_level: bool = False)[source]
-
- _particle: smsh5.Particle[source]
- calc_int_bounds(order: str = 'descending') List[Tuple[float, float]][source]
Calculates the bounds between the groups.
- Parameters:
order (str) – Option are ‘descending’ and ‘ascending’
- setup_next_step() ClusteringStep[source]
- class grouping.AHCA(particle)[source]
Class for executing Agglomerative Hierarchical Clustering Algorithm and storing the results.
- property selected_step: ClusteringStep[source]
- property best_step: ClusteringStep[source]
- class grouping.GlobalLevel(global_particle: smsh5.Particle | smsh5.GlobalParticle, parent_particle_dataset_ind: int, particle_levels: List[change_point.Level | GlobalLevel], int_p_s: float, group_ind: int, start_time_offset_ns: int, dwell_time_ns: float, num_photons: int)[source]