Skip to content

compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1dT_compose_funct_1d🔗

Short description🔗

compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1dT_compose_funct_1d — Compose two functions.

Signature🔗

compose_funct_1d( function_1d Function1, function_1d Function2, string Border, out function_1d ComposedFunction )void ComposeFunct1d( const HTuple& Function1, const HTuple& Function2, const HTuple& Border, HTuple* ComposedFunction )static void HOperatorSet.ComposeFunct1d( HTuple function1, HTuple function2, HTuple border, out HTuple composedFunction )def compose_funct_1d( function_1: Sequence[Union[float, int]], function_2: Sequence[Union[float, int]], border: str ) -> Sequence[Union[float, int]]

Herror T_compose_funct_1d( 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)

HFunction1D HFunction1D.ComposeFunct1d( HFunction1D function2, string border )

Description🔗

compose_funct_1dComposeFunct1d composes two functions, i.e., calculates ComposedFunction(x) = Function2(Function1(x)). ComposedFunctioncomposedFunctioncomposed_function has the same domain (x-range) as Function1function1function_1. If the range (y value range) of Function1function1function_1 is larger than the domain of Function2function2function_2, the parameter Borderborderborder determines the border treatment of Function2function2function_2. For Borderborderborder='zero'"zero" values outside the domain of Function2function2function_2 are set to 0, for Borderborderborder='constant'"constant" they are set to the corresponding value at the border, for Borderborderborder='mirror'"mirror" they are mirrored at the border, and for Borderborderborder='cyclic'"cyclic" they are continued cyclically. To obtain y values, Function2function2function_2 is interpolated linearly.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Function1function1function_1 (input_control) function_1d → (real / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Input function 1.

Function2function2function_2 (input_control) function_1d → (real / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Input function 2.

Borderborderborder (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Border treatment for the input functions.

Default: 'constant'"constant"
List of values: 'constant', 'cyclic', 'mirror', 'zero'"constant", "cyclic", "mirror", "zero"

ComposedFunctioncomposedFunctioncomposed_function (output_control) function_1d → (real / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Composed function.

Combinations with other operators🔗

Combinations

Possible predecessors

create_funct_1d_pairsCreateFunct1dPairs, create_funct_1d_arrayCreateFunct1dArray

Module🔗

Foundation