Herror ::transform_funct_1d (
    const HTuple &Function,
    const HTuple &Params,
    HTuple *TransformedFunction
)

Transform a function using given transformation parameters.

::transform_funct_1d transforms the input function Function using the transformation parameters given in Params. The function Function is passed as a tuple (see ::create_funct_1d_array und ::create_funct_1d_pairs). The following model is used for the transformation between the two functions (see ::match_funct_1d_trans):

    yt(x) = a1*y(a3*x+a4)+a2 .
The output function TransformedFunction 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. To do so, the operator ::sample_funct_1d can be used.


Parameters

Function (input_control)
function_1d-array -> HTuple.double / long
Input function.

Params (input_control)
number-array -> HTuple.double
Transformation parameters between the functions.
Number of elements: 4

TransformedFunction (output_control)
function_1d-array -> HTuple.double * / long *
Transformed function.


Possible Predecessors

::create_funct_1d_pairs, ::create_funct_1d_array, ::match_funct_1d_trans


Module

Tools



Copyright © 1996-2002 MVTec Software GmbH