fourierror.numerical#

fourierror.numerical.dft(data, coord, n_samples=5000, random_state=None)#

Perform a numerical discrete Fourier transform.

Parameters:
  • data (DataArray) – A scipp DataArray with the data to be Fourier transformed.

  • coord (str) – The coordinate to compute the Fourier transform over.

  • n_samples (int) – Number of samples to use to obtain numerical solution. Optional, defaults to 5000.

  • random_state ([None, <class ‘int’>, <class ‘numpy.random._generator.Generator’>]) – Passed to the random sampler to enable reproducibility.

Return type:

Dataset

Returns:

A scipp Dataset with real and imaginary values for the Fourier transformed result with some “frequency” axis. an omega axis.

fourierror.numerical.fft(data, coord, n_samples=5000, random_state=None)#

Perform a numerical fast Fourier transform.

Parameters:
  • data (DataArray) – A scipp DataArray with the data to be fast Fourier transformed.

  • coord (str) – The coordinate to compute the fast Fourier transform over.

  • n_samples (int) – Number of samples to use to obtain numerical solution. Optional, defaults to 5000.

  • random_state ([None, <class ‘int’>, <class ‘numpy.random._generator.Generator’>]) – Passed to the random sampler to enable reproducibility.

Return type:

Dataset

Returns:

A scipp Dataset with real and imaginary values for the fast Fourier transformed result with some “frequency” axis.