create_funct_1d_arrayT_create_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArray (Operator)
Name
create_funct_1d_arrayT_create_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArray
— Create a function from a sequence of y-values.
Signature
Description
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArray
creates a one-dimensional function
from a set of y-values YValuesYValuesYValuesYValuesYValues
. The resulting function
can then be processed and analyzed with the operators for 1d
functions. YValuesYValuesYValuesYValuesYValues
is interpreted as follows: the first
value of YValuesYValuesYValuesYValuesYValues
is the function value at zero, the
second value is the function value at one, etc. Thus, the values
define a function at equidistant x values (with distance 1),
starting at 0.
Alternatively, the operator create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs
can be
used to create a function. create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs
also allows
to define a function with non-equidistant x valus by specifiying them
explicitly. Thus to get the same definition as with
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArray
, one would pass a tuple of
x values to create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs
that has the same length
as YValuesYValuesYValuesYValuesYValues
and contains values starting at 0 and increasing by
1 in each position. Note, however, that create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs
leads to a different internal representation of the function which
needs more storage (because all (x,y) pairs are stored) and sometimes
cannot be processed as efficiently as functions created by
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArray
.
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
YValuesYValuesYValuesYValuesYValues
(input_control) number(-array) →
HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
X value for function points.
FunctionFunctionFunctionFunctionfunction
(output_control) function_1d →
HFunction1D, HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Created function.
Possible Successors
write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1d
,
y_range_funct_1dy_range_funct_1dYRangeFunct1dYRangeFunct1dYRangeFunct1d
,
get_pair_funct_1dget_pair_funct_1dGetPairFunct1dGetPairFunct1dGetPairFunct1d
,
transform_funct_1dtransform_funct_1dTransformFunct1dTransformFunct1dTransformFunct1d
Alternatives
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs
,
read_funct_1dread_funct_1dReadFunct1dReadFunct1dReadFunct1d
See also
funct_1d_to_pairsfunct_1d_to_pairsFunct1dToPairsFunct1dToPairsFunct1dToPairs
Module
Foundation