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
| Input | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 | time_scoping | vector<int32>, scoping | A time scoping to rescope / split the fields container given as input. |
| Pin 1 | mesh_scoping | umap<int32,int32>, scoping, scopings_container | A space (mesh entities) scoping (or scopings container) to rescope / split the fields container given as input. |
| Pin 2 Required | entity_to_fit | fields_container | Data changing in time to be fitted. |
| Pin 3 Required | component_number | int32 | Component number as an integer, for example '0' for X-displacement, '1' for Y-displacement, and so on. |
| Pin 4 Required | first_derivative | bool | Calculate the first derivative (bool). The default is false. |
| Pin 5 Required | second_derivative | bool | Calculate the second derivative (bool). The default is false. |
| Pin 6 Required | fit_data | bool | Calculate the fitted values (bool). The default is false |
| Pin 7 | cutoff_fr | double, int32 | Cutoff frequency. |
Outputs
| Output | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 | fitted_entity_y | fields_container | The 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 1 | first_der_dy | fields_container | The first derivative (dY) from the fitted Y. |
| Pin 2 | second_der_d2y | fields_container | The second derivative (d2Y) from the fitted Y. |
Configurations
| Name | Expected type(s) | Default value | Description |
|---|---|---|---|
| mutex | bool | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |
| num_threads | int32 | 0 | Number of threads to use to run in parallel |
| run_in_parallel | bool | true | Loops 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.