Herror ::create_funct_1d_pairs (
    const HTuple &XValues,
    const HTuple &YValues,
    HTuple *Function
)

Create a function from a set of (x,y) pairs.

::create_funct_1d_pairs creates a one-dimensional function from a set of pairs of (x,y) values. The XValues of the functions have to be passed in ascending order. The resulting function can then be processed and analyzed with the operators for 1d functions.

Alternatively, functions can be created with the operator ::create_funct_1d_array. In contrast to this operator, x values with arbitrary positions can be specified with ::create_funct_1d_pairs. Hence, it is the more general operator. It should be noted, however, that because of this generality the processing of a function created with ::create_funct_1d_pairs cannot be carried out as efficiently as for equidistant functions. In particular, not all operators accept such functions. If necessary, a function can be transformed into an equidistant function with the operator ::sample_funct_1d.


Parameters

XValues (input_control)
number(-array) -> HTuple.double / long
X value for function points.

YValues (input_control)
number(-array) -> HTuple.double / long
Y-value for function points.

Function (output_control)
function_1d-array -> HTuple.double * / long *
Created function.


Possible Successors

::write_funct_1d, ::gnuplot_plot_funct_1d, ::y_range_funct_1d, ::get_pair_funct_1d


Alternatives

::create_funct_1d_array, ::read_funct_1d


See also

::funct_1d_to_pairs


Module

Tools



Copyright © 1996-2002 MVTec Software GmbH