turbustat.statistics.
DendroDistance
(cube1, cube2, min_deltas=None, nbins='best', min_features=100, fiducial_model=None, dendro_params=None)[source] [edit on github]¶Bases: object
Calculate the distance between 2 cubes using dendrograms. The number of features vs. minimum delta is fit to a linear model, with an interaction term o gauge the difference. The distance is the t-statistic of that parameter. The Hellinger distance is computed for the histograms at each minimum delta value. The distance is the average of the Hellinger distances.
Parameters: | cube1 : numpy.ndarray or str
cube2 : numpy.ndarray or str
min_deltas : numpy.ndarray or list
nbins : str or float, optional
min_features : int, optional
fiducial_model : Dendrogram_Stats
dendro_params : dict or list of dicts, optional
|
---|
Methods Summary
Methods Documentation
distance_metric
(verbose=False)[source] [edit on github]¶histogram_stat
(verbose=False)[source] [edit on github]¶Computes the distance using histograms.
Parameters: | verbose : bool, optional
|
---|
numfeature_stat
(verbose=False)[source] [edit on github]¶Calculate the distance based on the number of features statistic.
Parameters: | verbose : bool, optional
|
---|