turbustat.statistics.
Cramer_Distance
(cube1, cube2, noise_value1=-inf, noise_value2=-inf)[source] [edit on github]¶Bases: object
Compute the Cramer distance between two data cubes. The data cubes are flattened spatially to give 2D objects. We clip off empty channels and keep only the top quartile in the remaining channels.
Parameters: | cube1 : numpy.ndarray or astropy.io.fits.PrimaryHDU or SpectralCube
cube2 : numpy.ndarray or astropy.io.fits.PrimaryHDU or SpectralCube
noise_value1 : float, optional
noise_value2 : float, optional
data_format : str, optional
|
---|
Methods Summary
cramer_statistic ([n_jobs]) |
Applies the Cramer Statistic to the datasets. |
distance_metric ([normalize, n_jobs]) |
This serves as a simple wrapper in order to remain with the coding convention used throughout the rest of this project. |
format_data ([data_format, seed, normalize]) |
Rearrange data into a 2D object using the given format. |
Methods Documentation
cramer_statistic
(n_jobs=1)[source] [edit on github]¶Applies the Cramer Statistic to the datasets.
Parameters: | n_jobs : int, optional
|
---|
distance_metric
(normalize=True, n_jobs=1)[source] [edit on github]¶This serves as a simple wrapper in order to remain with the coding convention used throughout the rest of this project.
Parameters: | normalize : bool, optional n_jobs : int, optional |
---|
format_data
(data_format='intensity', seed=13024, normalize=True, **kwargs)[source] [edit on github]¶Rearrange data into a 2D object using the given format.
Parameters: | data_format : {‘intensity’, ‘spectra’}, optional
seed : int, optional
normalize : bool, optional
kwargs : Passed to |
---|