ClassesClassesClassesClasses | | | | Operators

local_min_max_funct_1dT_local_min_max_funct_1dLocalMinMaxFunct1dlocal_min_max_funct_1dLocalMinMaxFunct1dLocalMinMaxFunct1d (Operator)

Name

local_min_max_funct_1dT_local_min_max_funct_1dLocalMinMaxFunct1dlocal_min_max_funct_1dLocalMinMaxFunct1dLocalMinMaxFunct1d — Calculate the local minimum and maximum points of a function.

Signature

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

Herror T_local_min_max_funct_1d(const Htuple Function, const Htuple Mode, const Htuple Interpolation, Htuple* Min, Htuple* Max)

Herror local_min_max_funct_1d(const HTuple& Function, const HTuple& Mode, const HTuple& Interpolation, HTuple* Min, HTuple* Max)

HTuple HFunction1D::LocalMinMaxFunct1d(const HTuple& Mode, const HTuple& Interpolation, HTuple* Max) const

void LocalMinMaxFunct1d(const HTuple& Function, const HTuple& Mode, const HTuple& Interpolation, HTuple* Min, HTuple* Max)

void HFunction1D::LocalMinMaxFunct1d(const HString& Mode, const HString& Interpolation, HTuple* Min, HTuple* Max) const

void HFunction1D::LocalMinMaxFunct1d(const char* Mode, const char* Interpolation, HTuple* Min, HTuple* Max) const

void HOperatorSetX.LocalMinMaxFunct1d(
[in] VARIANT Function, [in] VARIANT Mode, [in] VARIANT Interpolation, [out] VARIANT* Min, [out] VARIANT* Max)

VARIANT HFunction1DX.LocalMinMaxFunct1d(
[in] BSTR Mode, [in] BSTR Interpolation, [out] VARIANT* Max)

static void HOperatorSet.LocalMinMaxFunct1d(HTuple function, HTuple mode, HTuple interpolation, out HTuple min, out HTuple max)

void HFunction1D.LocalMinMaxFunct1d(string mode, string interpolation, out HTuple min, out HTuple max)

Description

local_min_max_funct_1dlocal_min_max_funct_1dLocalMinMaxFunct1dlocal_min_max_funct_1dLocalMinMaxFunct1dLocalMinMaxFunct1d searches for the local minima MinMinMinMinMinmin and maxima MaxMaxMaxMaxMaxmax of the function FunctionFunctionFunctionFunctionFunctionfunction.

Since the function values are only known at discrete sampling points, the function can interpolated by parabolas between these points. Setting the parameter InterpolationInterpolationInterpolationInterpolationInterpolationinterpolation to 'true'"true""true""true""true""true", enables this feature. If InterpolationInterpolationInterpolationInterpolationInterpolationinterpolation is 'false'"false""false""false""false""false", extrema are always sampling points.

If ModeModeModeModeModemode is set to 'strict_min_max'"strict_min_max""strict_min_max""strict_min_max""strict_min_max""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 ModeModeModeModeModemode is set to 'plateaus_center'"plateaus_center""plateaus_center""plateaus_center""plateaus_center""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.

Parallelization

Parameters

FunctionFunctionFunctionFunctionFunctionfunction (input_control)  function_1d HFunction1D, HTupleHTupleHFunction1D, HTupleHFunction1DX, VARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Input function

ModeModeModeModeModemode (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Handling of plateaus

Default value: 'strict_min_max' "strict_min_max" "strict_min_max" "strict_min_max" "strict_min_max" "strict_min_max"

List of values: 'plateaus_center'"plateaus_center""plateaus_center""plateaus_center""plateaus_center""plateaus_center", 'strict_min_max'"strict_min_max""strict_min_max""strict_min_max""strict_min_max""strict_min_max"

InterpolationInterpolationInterpolationInterpolationInterpolationinterpolation (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Interpolation of the input function

Default value: 'true' "true" "true" "true" "true" "true"

List of values: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

MinMinMinMinMinmin (output_control)  real-array HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Minimum points of the input function

MaxMaxMaxMaxMaxmax (output_control)  real-array HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Maximum points of the input function

Possible Predecessors

create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairs, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArray, smooth_funct_1d_gausssmooth_funct_1d_gaussSmoothFunct1dGausssmooth_funct_1d_gaussSmoothFunct1dGaussSmoothFunct1dGauss, smooth_funct_1d_meansmooth_funct_1d_meanSmoothFunct1dMeansmooth_funct_1d_meanSmoothFunct1dMeanSmoothFunct1dMean

Module

Foundation


ClassesClassesClassesClasses | | | | Operators