Tsallis

class turbustat.statistics.Tsallis(img, lags=None, num_bins=500, periodic=False)[source] [edit on github]

Bases: object

The Tsallis Distribution (see Tofflemire et al., 2011)

Parameters:

img : numpy.ndarray

2D image.

lags : numpy.ndarray or list

Lags to calculate at.

num_bins : int, optional

Number of bins to use in the histograms.

periodic : bool, optional

Sets whether the boundaries are periodic.

Parameters:

periodic : bool, optional

Use for simulations with periodic boundaries.

Methods Summary

Methods Documentation

fit_tsallis(sigma_clip=2)[source] [edit on github]

Fit the Tsallis distributions.

Parameters:

sigma_clip : float

Sets the sigma value to clip data at.

make_tsallis()[source] [edit on github]

Calculate the Tsallis distribution at each lag. We standardize each distribution such that it has a mean of zero and variance of one.

run(verbose=False, sigma_clip=2)[source] [edit on github]

Run all steps.

Parameters:

verbose : bool, optional

Enables plotting.

sigma_clip : float

Sets the sigma value to clip data at. Passed to fit_tsallis().