transform_funct_1dT_transform_funct_1dTransformFunct1dTransformFunct1dtransform_funct_1d (Operator)
Name
transform_funct_1dT_transform_funct_1dTransformFunct1dTransformFunct1dtransform_funct_1d
— Transform a function using given transformation parameters.
Signature
def transform_funct_1d(function: Sequence[Union[float, int]], params: Sequence[float]) -> Sequence[Union[float, int]]
Description
transform_funct_1dtransform_funct_1dTransformFunct1dTransformFunct1dTransformFunct1dtransform_funct_1d
transforms the input function
FunctionFunctionFunctionFunctionfunctionfunction
using the transformation parameters given in
ParamsParamsParamsParamsparamsValparams
. The function FunctionFunctionFunctionFunctionfunctionfunction
is passed as a
tuple (see create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
and
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
). The following model is used for the
transformation between the two functions (see
match_funct_1d_transmatch_funct_1d_transMatchFunct1dTransMatchFunct1dTransMatchFunct1dTransmatch_funct_1d_trans
):
The output function TransformedFunctionTransformedFunctionTransformedFunctionTransformedFunctiontransformedFunctiontransformed_function
is obtained by
transforming the x and y values of the input function separately
with the above formula, i.e., the output function is not sampled
again. Therefore, the parameter is restricted to
. To resample a function, the operator
sample_funct_1dsample_funct_1dSampleFunct1dSampleFunct1dSampleFunct1dsample_funct_1d
can be used.
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
FunctionFunctionFunctionFunctionfunctionfunction
(input_control) function_1d →
HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input function.
ParamsParamsParamsParamsparamsValparams
(input_control) number-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Transformation parameters between the functions.
Number of elements:
4
TransformedFunctionTransformedFunctionTransformedFunctionTransformedFunctiontransformedFunctiontransformed_function
(output_control) function_1d →
HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Transformed function.
Possible Predecessors
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
,
match_funct_1d_transmatch_funct_1d_transMatchFunct1dTransMatchFunct1dTransMatchFunct1dTransmatch_funct_1d_trans
Module
Foundation