turbustat.statistics.
StatMoments
(img, weights=None, radius=5, periodic=True, nbins=None)[source] [edit on github]¶Bases: turbustat.statistics.base_statistic.BaseStatisticMixIn
Statistical Moments of a given image are returned. See Burkhart et al. (2010) for methods used.
Parameters: | img : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject
weights : numpy.ndarray or astropy.io.fits.PrimaryHDU or spectral_cube.LowerDimensionalObject
radius : int, optional
periodic : bool, optional
nbins : array or int, optional
|
---|
Attributes Summary
kurtosis_extrema |
|
mean_extrema |
|
skewness_extrema |
|
variance_extrema |
Methods Summary
array_moments () |
Moments over the entire image. |
compute_spatial_distrib () |
Compute the moments over circular region with the specified radius. |
make_spatial_histograms ([mean_bins, ...]) |
Create histograms of the moments. |
run ([verbose, save_name]) |
Compute the entire method. |
Attributes Documentation
kurtosis_extrema
¶mean_extrema
¶skewness_extrema
¶variance_extrema
¶Methods Documentation
array_moments
()[source] [edit on github]¶Moments over the entire image.
compute_spatial_distrib
()[source] [edit on github]¶Compute the moments over circular region with the specified radius.
make_spatial_histograms
(mean_bins=None, variance_bins=None, skewness_bins=None, kurtosis_bins=None)[source] [edit on github]¶Create histograms of the moments.
Parameters: | mean_bins : array, optional
variance_bins : array, optional
skewness_bins : array, optional
kurtosis_bins : array, optional
|
---|
run
(verbose=False, save_name=None, **kwargs)[source] [edit on github]¶Compute the entire method.
Parameters: | verbose : bool, optional
save_name : str,optional
kwargs : Passed to |
---|