local_min_max_funct_1dT_local_min_max_funct_1dLocalMinMaxFunct1dLocalMinMaxFunct1dlocal_min_max_funct_1d (算子)
名称
local_min_max_funct_1dT_local_min_max_funct_1dLocalMinMaxFunct1dLocalMinMaxFunct1dlocal_min_max_funct_1d — 计算函数的局部最小值和最大值。
签名
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 HFunction1D::LocalMinMaxFunct1d(const wchar_t* Mode, const wchar_t* Interpolation, HTuple* Min, HTuple* Max) const
(
Windows only)
def local_min_max_funct_1d(function: Sequence[Union[float, int]], mode: str, interpolation: str) -> Tuple[Sequence[float], Sequence[float]]
描述
local_min_max_funct_1dlocal_min_max_funct_1dLocalMinMaxFunct1dLocalMinMaxFunct1dLocalMinMaxFunct1dlocal_min_max_funct_1d 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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
FunctionFunctionFunctionFunctionfunctionfunction (输入控制) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input function
ModeModeModeModemodemode (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Handling of plateaus
默认值:
'strict_min_max'
"strict_min_max"
"strict_min_max"
"strict_min_max"
"strict_min_max"
"strict_min_max"
值列表:
'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 (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Interpolation of the input function
默认值:
'true'
"true"
"true"
"true"
"true"
"true"
值列表:
'false'"false""false""false""false""false", 'true'"true""true""true""true""true"
MinMinMinMinminmin (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Minimum points of the input function
MaxMaxMaxMaxmaxmax (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Maximum points of the input function
可能的前趋
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array,
smooth_funct_1d_gausssmooth_funct_1d_gaussSmoothFunct1dGaussSmoothFunct1dGaussSmoothFunct1dGausssmooth_funct_1d_gauss,
smooth_funct_1d_meansmooth_funct_1d_meanSmoothFunct1dMeanSmoothFunct1dMeanSmoothFunct1dMeansmooth_funct_1d_mean
模块
基础