Operator Reference

compose_funct_1dT_compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1d (Operator)

compose_funct_1dT_compose_funct_1dComposeFunct1dComposeFunct1dcompose_funct_1d — Compose two functions.

Signature

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)

def compose_funct_1d(function_1: Sequence[Union[float, int]], function_2: Sequence[Union[float, int]], border: str) -> Sequence[Union[float, int]]

Description

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

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

Function1Function1Function1function1function_1 (input_control)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input function 1.

Function2Function2Function2function2function_2 (input_control)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input function 2.

BorderBorderBorderborderborder (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Border treatment for the input functions.

Default: 'constant' "constant" "constant" "constant" "constant"

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

ComposedFunctionComposedFunctionComposedFunctioncomposedFunctioncomposed_function (output_control)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Composed function.

Possible Predecessors

create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array

Module

Foundation