Skip to main content
POST
/
quantlib
/
numerical
/
fft
/
forward
Fast Fourier Transform (Forward)
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/numerical/fft/forward \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "data": [
    1,
    2,
    3,
    4,
    4,
    3,
    2,
    1
  ]
}
'
{
  "success": true,
  "data": {
    "real": [
      20,
      -4.828,
      0,
      -0.172,
      0,
      -0.172,
      0,
      -4.828
    ],
    "imag": [
      0,
      4.828,
      0,
      0.172,
      0,
      -0.172,
      0,
      -4.828
    ],
    "magnitude": [
      20,
      6.828,
      0,
      0.243,
      0,
      0.243,
      0,
      6.828
    ],
    "n": 8
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
data
number[]
required

Real-valued input data (time or spatial domain samples)

Example:
[1, 2, 3, 4, 4, 3, 2, 1]

Response

Successful Response

success
boolean
Example:

true

data
object