turbustat.statistics.
DendroDistance
(cube1, cube2, min_deltas=None, nbins='best', min_features=100, fiducial_model=None, dendro_params=None, periodic_bounds=False)[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 astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject or SpectralCube or str
cube2 : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject or SpectralCube 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
periodic_bounds : bool or list, optional
|
---|
Methods Summary
distance_metric ([verbose, label1, label2]) |
Calculate both distance metrics. |
histogram_stat ([verbose, label1, label2, ...]) |
Computes the distance using histograms. |
numfeature_stat ([verbose, label1, label2, ...]) |
Calculate the distance based on the number of features statistic. |
Methods Documentation
distance_metric
(verbose=False, label1=None, label2=None)[source] [edit on github]¶Calculate both distance metrics.
Parameters: | verbose : bool, optional
label1 : str, optional
label2 : str, optional
|
---|
histogram_stat
(verbose=False, label1=None, label2=None, save_name=None)[source] [edit on github]¶Computes the distance using histograms.
Parameters: | verbose : bool, optional
label1 : str, optional
label2 : str, optional
save_name : str, optional
|
---|
numfeature_stat
(verbose=False, label1=None, label2=None, save_name=None)[source] [edit on github]¶Calculate the distance based on the number of features statistic.
Parameters: | verbose : bool, optional
label1 : str, optional
label2 : str, optional
save_name : str, optional
|
---|