compose_funct_1dT_compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1d (算子)
名称
compose_funct_1dT_compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1d — 组合两个函数。
签名
def compose_funct_1d(function_1: Sequence[Union[float, int]], function_2: Sequence[Union[float, int]], border: str) -> Sequence[Union[float, int]]
描述
compose_funct_1dcompose_funct_1dComposeFunct1dComposeFunct1dComposeFunct1dcompose_funct_1d composes two functions, i.e., calculates
ComposedFunction(x) = Function2(Function1(x)).
ComposedFunctionComposedFunctionComposedFunctionComposedFunctioncomposedFunctioncomposed_function has the same domain (x-range) as
Function1Function1Function1Function1function1function_1. If the range (y value range) of
Function1Function1Function1Function1function1function_1 is larger than the domain of Function2Function2Function2Function2function2function_2,
the parameter BorderBorderBorderBorderborderborder determines the border treatment of
Function2Function2Function2Function2function2function_2. For BorderBorderBorderBorderborderborder='zero'"zero""zero""zero""zero""zero" values
outside the domain of Function2Function2Function2Function2function2function_2 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,
and for BorderBorderBorderBorderborderborder='cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic" they are continued
cyclically. To obtain y values, Function2Function2Function2Function2function2function_2 is interpolated
linearly.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
Function1Function1Function1Function1function1function_1 (输入控制) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input function 1.
Function2Function2Function2Function2function2function_2 (输入控制) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input function 2.
BorderBorderBorderBorderborderborder (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Border treatment for the input functions.
默认值:
'constant'
"constant"
"constant"
"constant"
"constant"
"constant"
值列表:
'constant'"constant""constant""constant""constant""constant", 'cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic", 'mirror'"mirror""mirror""mirror""mirror""mirror", 'zero'"zero""zero""zero""zero""zero"
ComposedFunctionComposedFunctionComposedFunctionComposedFunctioncomposedFunctioncomposed_function (输出控制) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Composed function.
可能的前趋
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
模块
基础