compose_funct_1dT_compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1d组合函数一维(算子)

名称

compose_funct_1dT_compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1d — 组合两个函数。

签名

compose_funct_1d( : : Function1, Function2, Border : ComposedFunction)

Herror T_compose_funct_1d(const Htuple Function1, const Htuple Function2, const Htuple Border, Htuple* ComposedFunction)

void ComposeFunct1d(const HTuple& Function1, const HTuple& Function2, const HTuple& Border, HTuple* ComposedFunction)

HFunction1D HFunction1D::ComposeFunct1d(const HFunction1D& Function2, const HString& Border) const

HFunction1D HFunction1D::ComposeFunct1d(const HFunction1D& Function2, const char* Border) const

HFunction1D HFunction1D::ComposeFunct1d(const HFunction1D& Function2, const wchar_t* Border) const   ( Windows only)

static void HOperatorSet.ComposeFunct1d(HTuple function1, HTuple function2, HTuple border, out HTuple composedFunction)

HFunction1D HFunction1D.ComposeFunct1d(HFunction1D function2, string border)

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 组合两个函数,即计算 ComposedFunction(x) = Function2(Function1(x))。ComposedFunctionComposedFunctionComposedFunctionComposedFunctioncomposedFunctioncomposed_functionFunction1Function1Function1Function1function1function_1 具有相同的域(x 范围)。若 Function1Function1Function1Function1function1function_1 的范围(y 值范围)大于 Function2Function2Function2Function2function2function_2 的域,则参数 BorderBorderBorderBorderborderborder 决定 Function2Function2Function2Function2function2function_2 在边界处的处理方式。当 BorderBorderBorderBorderborderborder='zero'"zero""zero""zero""zero""zero" 时,Function2Function2Function2Function2function2function_2 域外的值设为 0;当 BorderBorderBorderBorderborderborder='constant'"constant""constant""constant""constant""constant" 时,设为边界对应值;当 BorderBorderBorderBorderborderborder='mirror'"mirror""mirror""mirror""mirror""mirror" 时,在边界处进行镜像处理;当 BorderBorderBorderBorderborderborder='cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic" 时,则进行周期性延续。为获取 y 值,Function2Function2Function2Function2function2function_2 将进行线性插值。

执行信息

参数

Function1Function1Function1Function1function1function_1 (输入控制)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

输入函数 1。

Function2Function2Function2Function2function2function_2 (输入控制)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

输入函数 2。

BorderBorderBorderBorderborderborder (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

输入函数的边界处理。

默认值: '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)

组合函数。

可能的前趋

create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array

模块

基础