VCA_Distance

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

Bases: object

Calculate the distance between two cubes using VCA. The 1D power spectrum is modeled by a linear model. The distance is the t-statistic of the interaction between the two slopes.

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. If not specified, no break point will be used.

fiducial_model : VCA

Computed VCA object. use to avoid recomputing.

Methods Summary

Methods Documentation

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

Implements the distance metric for 2 VCA transforms, each with the same channel width. We fit the linear portion of the transform to represent the powerlaw.

Parameters:

labels : list, optional

Contains names of datacubes given in order.

verbose : bool, optional

Enables plotting.