impure functionfftScaled

Compute scaled FFT

Inputs

TypeNameDefaultDescription
Real[:]u_bufSignal for which FFT shall be computed; (size(u_buf,1) MUST be EVEN and should be an integer multiple of 2,3,5, that is size(u_buf,1) = 2^a*3^b*5^c, with a,b,c Integer >= 0)
IntegernfNumber of frequency points that shall be returned in amplitudes and phases (typically: nf = max(1,min(integer(ceil(f_max/f_resolution))+1,nf_max))); the maximal possible value is nf_Max=div(size(u_buf,1),2)+1)
IntegeriTickNumber of sample points that have been stored in u_buf
Modelica.Units.SI.TimeTsSample period of FFT
Booleanpre_periods_okPrevious value of periods_ok
StringinstanceName"???"

Outputs

TypeNameDefaultDescription
Real[nf]A_buf
Booleanperiods_ok

Revisions

Date Description
Nov. 29, 2015 Initial version implemented by Martin R. Kuhn and Martin Otter (DLR Institute of System Dynamics and Control)
The research leading to these results has received funding from the European Union’s Seventh Framework Programme (FP7/2007-2016) for the Clean Sky Joint Technology Initiative under grant agreement no. CSJU-GAM-SGO-2008-001.