• Dennis Francis's avatar
    tdf#74664 : Adds FOURIER() formula · 32d9f7a6
    Dennis Francis yazdı
    FOURIER(Array, GroupedByColumns, Inverse, Polar)
    is a matrix formula that computes discrete Fourier transform[DFT]
    of input array(first argument) via a radix-2, decimation-in-time
    fast Fourier transform algorithm.
    
    Unit test for this is coming up in a new commit.
    
    The data in input array(first argument) can be :-
    
    1) grouped by columns (needs to be indicated by flag GroupedByColumns = TRUE)
       In this case the array can contain 1 or 2 columns, where the first column
       contains the real part of input series and second column if present contains
       the imaginary part of the input series. If there is only 1 column, the input
       series is treated as purely real. If the number of rows is not a power of 2,
       zeroes are appended to the input series internally to make the series length
       equal to the next nearest power of 2.
    
    2) grouped by rows (needs to be indicated by flag GroupedByColumns = FALSE)
       In this case the array can contain 1 or 2 rows, where the first row
       contains the real part of input series and second row if present contains
       the imaginary part of the input series. If there is only 1 row, the input
       series is treated as purely real. If the number of columns is not a power of 2,
       zeroes are appended to the input series internally to make the series length
       equal to the next nearest power of 2.
    
    The third argument "Inverse" is a boolean flag to indicate whether an inverse
    DFT needs to be computed. This argument is optional and the default value is
    FALSE.
    
    The fourth argument Polar is a boolean flag to indicate whether the final output
    needs to be in polar coordinates. This argument is optional and the default value
    is FALSE.
    
    The result of DFT consists of two columns - first column contains the real parts (or
    the magnitudes if Polar=TRUE) and second column contains the imaginary parts (or
    the phases if Polar=TRUE).
    
    Implementation:
    
    A fairly straighforward non-recursive implementation of radix-2 FFT algorithm is
    written from scratch.
    
    Reference:
    
    Heckbert, P., 1995. Fourier transforms and the fast Fourier transform (FFT) algorithm.
    Computer Graphics, 2, pp.15-463.
    
    The normalization factor used in DFT / and inverse DFT in this implementation matches that
    of fft() and ifft() functions of Matlab/Octave. It also matches the one used in Wikipedia
    article on DFT: https://en.wikipedia.org/wiki/Discrete_Fourier_transform.
    
    Change-Id: If4a40a6ef62bce1f03c589ae5357b2049f66fe64
    Reviewed-on: https://gerrit.libreoffice.org/67938
    Tested-by: Jenkins
    Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
    32d9f7a6
Adı
Son kayıt (commit)
Son güncelleme
..
LibreOfficeKit Loading commit data...
android Loading commit data...
animations Loading commit data...
apple_remote Loading commit data...
avmedia Loading commit data...
basegfx Loading commit data...
basic Loading commit data...
canvas Loading commit data...
codemaker Loading commit data...
com/sun/star/uno Loading commit data...
comphelper Loading commit data...
connectivity Loading commit data...
cppcanvas Loading commit data...
cppu Loading commit data...
cppuhelper Loading commit data...
cppunittester Loading commit data...
dbaccess Loading commit data...
desktop Loading commit data...
drawinglayer Loading commit data...
editeng Loading commit data...
filter Loading commit data...
formula Loading commit data...
fpicker Loading commit data...
framework Loading commit data...
helpcompiler Loading commit data...
i18nlangtag Loading commit data...
i18nutil Loading commit data...
ios Loading commit data...
jvmaccess Loading commit data...
jvmfwk Loading commit data...
linguistic Loading commit data...
o3tl Loading commit data...
onlineupdate Loading commit data...
oox Loading commit data...
opencl Loading commit data...
osl Loading commit data...
package Loading commit data...
registry Loading commit data...
rtl Loading commit data...
sal Loading commit data...
salhelper Loading commit data...
sax Loading commit data...
sfx2 Loading commit data...
sot Loading commit data...
store Loading commit data...
svl Loading commit data...
svtools Loading commit data...
svx Loading commit data...
systools/win32 Loading commit data...
test Loading commit data...
toolkit Loading commit data...
tools Loading commit data...
typelib Loading commit data...
ucbhelper Loading commit data...
uno Loading commit data...
unoidl Loading commit data...
unotest Loading commit data...
unotools Loading commit data...
vbahelper Loading commit data...
vcl Loading commit data...
xmloff Loading commit data...
xmlreader Loading commit data...
xmlscript Loading commit data...
IwyuFilter_include.yaml Loading commit data...
default.rc Loading commit data...
postmac.h Loading commit data...
postwin.h Loading commit data...
premac.h Loading commit data...
prewin.h Loading commit data...
version.hrc Loading commit data...