get_y_value_funct_1dT_get_y_value_funct_1dGetYValueFunct1dGetYValueFunct1d (Operator)
Name
get_y_value_funct_1dT_get_y_value_funct_1dGetYValueFunct1dGetYValueFunct1d
— Return the value of a function at an arbitrary position.
Signature
Herror T_get_y_value_funct_1d(const Htuple Function, const Htuple X, const Htuple Border, Htuple* Y)
Description
get_y_value_funct_1dget_y_value_funct_1dGetYValueFunct1dGetYValueFunct1dGetYValueFunct1d
returns the y value of the function
FunctionFunctionFunctionFunctionfunction
at the x coordinates specified by XXXXx
.
To obtain the y values, the input function is
interpolated linearly. The parameter BorderBorderBorderBorderborder
determines the
values of the function FunctionFunctionFunctionFunctionfunction
outside of its domain.
For BorderBorderBorderBorderborder
='zero'"zero""zero""zero""zero" these values 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,
for BorderBorderBorderBorderborder
='cyclic'"cyclic""cyclic""cyclic""cyclic" they are continued
cyclically, and for BorderBorderBorderBorderborder
='error'"error""error""error""error" an
exception is raised.
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
FunctionFunctionFunctionFunctionfunction
(input_control) function_1d →
HFunction1D, HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input function.
XXXXx
(input_control) number(-array) →
HTupleHTupleHtuple (real) (double) (double) (double)
X coordinate at which the function should be
evaluated.
BorderBorderBorderBorderborder
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Border treatment for the input function.
Default value:
'constant'
"constant"
"constant"
"constant"
"constant"
List of values: 'constant'"constant""constant""constant""constant", 'cyclic'"cyclic""cyclic""cyclic""cyclic", 'error'"error""error""error""error", 'mirror'"mirror""mirror""mirror""mirror", 'zero'"zero""zero""zero""zero"
YYYYy
(output_control) number(-array) →
HTupleHTupleHtuple (real) (double) (double) (double)
Y value at the given x value.
Possible Predecessors
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs
,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArray
Module
Foundation