Calculate the local minimum and maximum points of a function.
local_min_max_funct_1d searches for the local minima Min and maxima Max of the function Function.
Since the function values are only known at discrete sampling points, the function can interpolated by parabolas between these points. Setting the parameter Interpolation to 'true', enables this feature. If Interpolation is 'false', extrema are always sampling points.
If Mode is set to 'strict_min_max', extrema are only calculated close to points with a function value that is strictly smaller or strictly greater than the values of its direct neighbors.
If Mode is set to 'plateaus_center', areas with a function value that is constant throughout several sampling points are also considered. If such an area is identified as being a flat extremum, its center coordinate is returned.
|
Function (input_control) |
function_1d-array -> real / integer |
| Input function | |
|
Mode (input_control) |
string -> string |
| Handling of plateaus | |
| Default value: 'strict_min_max' | |
| List of values: 'strict_min_max', 'plateaus_center' | |
|
Interpolation (input_control) |
string -> string |
| Interpolation of the input function | |
| Default value: 'true' | |
| List of values: 'true', 'false' | |
|
Min (output_control) |
real-array -> real |
| Minimum points of the input function | |
|
Max (output_control) |
real-array -> real |
| Maximum points of the input function | |
local_min_max_funct_1d is reentrant and processed without parallelization.
create_funct_1d_pairs, create_funct_1d_array, smooth_funct_1d_gauss, smooth_funct_1d_mean
Foundation