tune_fourier_transforms

hcipy.fourier.tune_fourier_transforms(fourier_transforms=None, plot_fname=None, show_plot=True, Ns=None, qs=None, fovs=None)

Tune the Fourier transforms by measuring their performance and fitting a power-law to the data.

Parameters:
fourier_transforms(dict of string to Fourier class) or None

The Fourier transform classes to tune. If None, all Fourier transforms will be tuned.

plot_fnamestr or None

The filename to save the plot to. If None, the plot will not be saved.

show_plotbool

Whether to show the plot.

Nsarray_like

The pupil grid sizes to measure. If None, a default set of values will be used.

qsarray_like

The oversampling factors to measure. If None, a default set of values will be used.

fovsarray_like

The fields of view to measure. If None, a default set of values will be used.

Returns:
dict

A dictionary containing the fit results for each Fourier transform. The keys are the names of the Fourier transforms, and the values are dictionaries containing the optimal parameters for the power-law fit.