From 88b52d4ecc908a817211a5beb908df378cbf5fae Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Tue, 12 Mar 2019 21:38:14 +0530 Subject: tdf#74664: FOURIER: add 5th optional parameter MinimumMagnitude This parameter is used only if Polar=TRUE. All frequency components with magnitude less than MinimumMagnitude will be suppressed with a zero magnitude-phase entry. This is very useful when looking at the magnitude-phase spectrum of a signal because there is always some very tiny amount of rounding error when doing FFT algorithms and results in incorrect non-zero phase for non-existent frequencies. By providing a suitable value to this parameter, these non-existent frequency components can be filtered out. By default the value of this 5th parameter is 0.0, so *no* suppression is done by default. Change-Id: I422ad1bf91f42b320e98e58a19c99bf8528e4708 Reviewed-on: https://gerrit.libreoffice.org/69471 Tested-by: Jenkins Reviewed-by: Dennis Francis --- sc/inc/scfuncs.hrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sc/inc/scfuncs.hrc') diff --git a/sc/inc/scfuncs.hrc b/sc/inc/scfuncs.hrc index f0f06eee6427..e17eb9250c65 100644 --- a/sc/inc/scfuncs.hrc +++ b/sc/inc/scfuncs.hrc @@ -4129,7 +4129,9 @@ const char* SC_OPCODE_FOURIER_ARY[] = NC_("SC_OPCODE_FOURIER", "Inverse"), NC_("SC_OPCODE_FOURIER", "Flag to indicate whether an inverse DFT is to be computed (default FALSE)."), NC_("SC_OPCODE_FOURIER", "Polar"), - NC_("SC_OPCODE_FOURIER", "Flag to indicate whether to return the results in polar form (default FALSE).") + NC_("SC_OPCODE_FOURIER", "Flag to indicate whether to return the results in polar form (default FALSE)."), + NC_("SC_OPCODE_FOURIER", "MinimumMagnitude"), + NC_("SC_OPCODE_FOURIER", "In case of Polar=TRUE, the frequency components below this magnitude are clipped out (default 0.0).") }; #endif -- cgit