VCS_Distance

class turbustat.statistics.VCS_Distance(cube1, cube2, breaks=None, fiducial_model=None)[source] [edit on github]

Bases: object

Calculate the distance between two cubes using VCS. The 1D power spectrum is modeled by a broked linear model to account for the density and velocity dominated scales. The distance is the sum of the t-statistics for each model.

Parameters:

cube1 : FITS hdu

Data cube.

cube2 : FITS hdu

Data cube.

slice_size : float, optional

Slice to degrade the cube to.

breaks : float, list or array, optional

Specify where the break point is. If None, attempts to find using spline.

fiducial_model : VCS

Computed VCS object. use to avoid recomputing.

Methods Summary

Methods Documentation

distance_metric(verbose=False)[source] [edit on github]

Implements the distance metric for 2 VCS transforms. This distance is the t-statistic of the difference in the slopes.

Parameters:

verbose : bool, optional

Enables plotting.