BiSpectrum

class turbustat.statistics.BiSpectrum(img)[source] [edit on github]

Bases: object

Computes the bispectrum (three-point correlation function) of the given image (Burkhart et al., 2010). The bispectrum and the bicoherence are returned. The bicoherence is a normalized version (real and to unity) of the bispectrum.

Parameters:

img : numpy.ndarray

2D image.

Methods Summary

Methods Documentation

compute_bispectrum(nsamples=100, seed=1000)[source] [edit on github]

Do the computation.

Parameters:

nsamples : int, optional

Sets the number of samples to take at each vector magnitude.

seed : int, optional

Sets the seed for the distribution draws.

run(nsamples=100, verbose=False)[source] [edit on github]

Compute the bispectrum. Necessary to maintiain package standards.

Parameters:

nsamples : int, optional

Sets the number of samples to take at each vector magnitude.

verbose : bool, optional

Enables plotting.