Berserk Docs
Scalar FunctionsSeries Functions

series_fft

The discrete Fourier transform of a series, as two series: the real parts and the imaginary parts.

One argument holds the real parts, with imaginary parts zero. Given one name, the result is the real parts; (re, im) = series_fft(x) names both. Null for an empty series.

Syntax

series_fft(x_real, x_imaginary)

Parameters

Prop

Type

Returns: dynamic

Examples

Example 1

print series_fft(dynamic([5, 2, 8, 3, 5, 2, 8, 3]))
print_0_real (dynamic)print_0_imag (dynamic)
[36.0,0.0,-6.0,0.0,16.0,0.0,-6.0,0.0][0.0,0.0,2.0,0.0,0.0,0.0,-2.0,0.0]

On this page