From 62396ea7c52203d9be8994feda49a894a5a220ee Mon Sep 17 00:00:00 2001 From: Chris Val Date: Fri, 3 Mar 2023 15:10:32 -0500 Subject: [PATCH] docs reference link --- doc/specs/fftpack.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/specs/fftpack.md b/doc/specs/fftpack.md index 1fd471f..be8b73f 100644 --- a/doc/specs/fftpack.md +++ b/doc/specs/fftpack.md @@ -1159,11 +1159,11 @@ Defines the length of the DCT. If `n` is not specified (the default) then `n = s This argument is `intent(in)` and `optional`. Defines the type of DCT to be performed. The default type is `2`. -#### Return value +### Return value Returns a `real` and rank-1 array, the DCT type-`t` of the input data `x`. -#### Notes +### Notes Within numerical accuracy, - `x == idct(dct(x, type=1), type=1) / (2*(size(x) - 1))` @@ -1217,11 +1217,11 @@ Defines the length of the Fourier transform. If `n` is not specified (the defaul This argument is `intent(in)` and `optional`. Defines the type of the IDCT to be performed. The default type is `2`. -#### Return value +### Return value Returns a `real` and rank-1 array, the IDCT type-`t` of the input data `x`. -#### Notes +### Notes Within numerical accuracy, - `x == idct(dct(x, type=1), type=1) / (2*(size(x) - 1))` @@ -1240,6 +1240,10 @@ program demo_idct end program demo_idct ``` +## References + +[1] Wikipedia, "Discrete cosine transform", [https://en.wikipedia.org/wiki/Discrete_cosine_transform](https://en.wikipedia.org/wiki/Discrete_cosine_transform) + # Utility functions ## `fftshift`