Skip to main content

math:fft filtering and cubic fitting

Version: 0.0.0

Description

Computes the fitting curve using FFT filtering and cubic fitting in space (node i: x=time, y=data), with the possibility to compute the first and the second derivatives of the curve.

Inputs

InputNameExpected type(s)Description
Pin 0time_scopingvector<int32>, scopingA time scoping to rescope / split the fields container given as input.
Pin 1mesh_scopingumap<int32,int32>, scoping, scopings_containerA space (mesh entities) scoping (or scopings container) to rescope / split the fields container given as input.
Pin 2
Required
entity_to_fitfields_containerData changing in time to be fitted.
Pin 3
Required
component_numberint32Component number as an integer, for example '0' for X-displacement, '1' for Y-displacement, and so on.
Pin 4
Required
first_derivativeboolCalculate the first derivative (bool). The default is false.
Pin 5
Required
second_derivativeboolCalculate the second derivative (bool). The default is false.
Pin 6
Required
fit_databoolCalculate the fitted values (bool). The default is false
Pin 7cutoff_frdouble, int32Cutoff frequency.

Outputs

OutputNameExpected type(s)Description
Pin 0fitted_entity_yfields_containerThe fitted entity is fitted using FFT along the space scoping (node i: x=time, y=data). Fitted Y is expected to be close to the input data.
Pin 1first_der_dyfields_containerThe first derivative (dY) from the fitted Y.
Pin 2second_der_d2yfields_containerThe second derivative (d2Y) from the fitted Y.

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
num_threadsint320Number of threads to use to run in parallel
run_in_parallelbooltrueLoops are allowed to run in parallel if the value of this config is set to true.

Scripting

Category: math

Plugin: core

Scripting name: fft_approx

Full name: math.fft_approx

Internal name: fft_approx

License: None

Changelog

  • Version 0.0.0: Initial release.