local_min_max_funct_1d ( : : Function, Mode, Interpolation : Min, Max )

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.


Parameters

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


Parallelization Information

local_min_max_funct_1d is reentrant and processed without parallelization.


Possible Predecessors

create_funct_1d_pairs, create_funct_1d_array, smooth_funct_1d_gauss, smooth_funct_1d_mean


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH