numpy.fft.rfft()

numpy.fft.rfft

numpy.fft.rfft(a, n=None, axis=-1, norm=None) [source]

Compute the one-dimensional discrete Fourier Transform for real input.

This function computes the one-dimensional n-point discrete Fourier Transform (DFT) of a real-valued array by means of an efficient algorithm called the Fast Fourier Transform (FFT).

Parameters:

a : array_like

Input array

n : int, optional

Number of points along transformatio