functionget_ns

Return number of sample points

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.Frequencyf_maxMaximum frequency of interest
Modelica.Units.SI.Frequencyf_resolutionFrequency resolution
Integerf_max_factor5Maximum FFT frequency >= f_max*f_max_factor (sample frequency = 2*Maximum FFT Frequency)

Outputs

TypeNameDefaultDescription
IntegernsNumber of sample points that can be expressed as ns = 2^i*3^j*5^k and ns is even

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.