turbustat.statistics.
PSpec_Distance
(data1, data2, weights1=None, weights2=None, fiducial_model=None, ang_units=False, low_cut=None, high_cut=0.5, logspacing=False)[source] [edit on github]¶Bases: object
Distance metric for the spatial power spectrum. A linear model with an interaction term is fit to the powerlaws. The distance is the t-statistic of the interaction term.
Parameters: | data1 : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject
data2 : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject
weights1 : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject, optional
weights2 : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject, optional
fiducial_model : PowerSpectrum
ang_units : bool, optional
low_cut : float or np.ndarray, optional
high_cut : float or np.ndarray, optional
logspacing : bool, optional
|
---|
Methods Summary
distance_metric ([verbose, label1, label2, ...]) |
Implements the distance metric for 2 Power Spectrum transforms. |
Methods Documentation
distance_metric
(verbose=False, label1=None, label2=None, ang_units=False, unit=Unit("deg"), save_name=None, use_wavenumber=False)[source] [edit on github]¶Implements the distance metric for 2 Power Spectrum transforms. We fit the linear portion of the transform to represent the powerlaw A linear model with an interaction term is fit to the two powerlaws. The distance is the t-statistic of the interaction.
Parameters: | verbose : bool, optional
label1 : str, optional
label2 : str, optional
ang_units : bool, optional
unit : u.Unit, optional
save_name : str,optional
use_wavenumber : bool, optional
|
---|