get_y_value_funct_1dT_get_y_value_funct_1dGetYValueFunct1dGetYValueFunct1dget_y_value_funct_1d (算子)
名称
get_y_value_funct_1dT_get_y_value_funct_1dGetYValueFunct1dGetYValueFunct1dget_y_value_funct_1d — 返回函数在任意位置的值。
签名
Herror T_get_y_value_funct_1d(const Htuple Function, const Htuple X, const Htuple Border, Htuple* Y)
def get_y_value_funct_1d(function: Sequence[Union[float, int]], x: MaybeSequence[float], border: str) -> Sequence[float]
def get_y_value_funct_1d_s(function: Sequence[Union[float, int]], x: MaybeSequence[float], border: str) -> float
描述
get_y_value_funct_1dget_y_value_funct_1dGetYValueFunct1dGetYValueFunct1dGetYValueFunct1dget_y_value_funct_1d returns the y value of the function
FunctionFunctionFunctionFunctionfunctionfunction at the x coordinates specified by XXXXxx.
To obtain the y values, the input function is
interpolated linearly. The parameter BorderBorderBorderBorderborderborder determines the
values of the function FunctionFunctionFunctionFunctionfunctionfunction outside of its domain.
For BorderBorderBorderBorderborderborder='zero'"zero""zero""zero""zero""zero" these values are set to 0, for
BorderBorderBorderBorderborderborder='constant'"constant""constant""constant""constant""constant" they are set to the
corresponding value at the border, for
BorderBorderBorderBorderborderborder='mirror'"mirror""mirror""mirror""mirror""mirror" they are mirrored at the border,
for BorderBorderBorderBorderborderborder='cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic" they are continued
cyclically, and for BorderBorderBorderBorderborderborder='error'"error""error""error""error""error" an
exception is raised.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
FunctionFunctionFunctionFunctionfunctionfunction (输入控制) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
输入函数。
XXXXxx (输入控制) number(-array) → HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)
X coordinate at which the function should be
evaluated.
BorderBorderBorderBorderborderborder (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Border treatment for the input function.
默认值:
'constant'
"constant"
"constant"
"constant"
"constant"
"constant"
值列表:
'constant'"constant""constant""constant""constant""constant", 'cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic", 'error'"error""error""error""error""error", 'mirror'"mirror""mirror""mirror""mirror""mirror", 'zero'"zero""zero""zero""zero""zero"
YYYYyy (输出控制) number(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Y value at the given x value.
可能的前趋
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
模块
基础