create_funct_1d_array T_create_funct_1d_array CreateFunct1dArray CreateFunct1dArray create_funct_1d_array (Operator)
Name
create_funct_1d_array T_create_funct_1d_array CreateFunct1dArray CreateFunct1dArray create_funct_1d_array
— Create a function from a sequence of y values.
Signature
def create_funct_1d_array (yvalues : MaybeSequence[Union[float, int]]) -> Sequence[Union[float, int]]
Description
create_funct_1d_array create_funct_1d_array CreateFunct1dArray CreateFunct1dArray create_funct_1d_array
creates a one-dimensional function
from a set of y values YValues YValues YValues YValues yvalues
. The resulting function
can then be processed and analyzed with the operators for 1d
functions. YValues YValues YValues YValues yvalues
is interpreted as follows: the first
value of YValues YValues YValues YValues yvalues
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
), starting at
.
The created function is composed like this:
where
denotes the function type as an equidistant function,
is the equidistance of the x values,
is the starting x value (is always 0), and
are the y values passed in YValues YValues YValues YValues yvalues
with
.
Alternatively, the operator create_funct_1d_pairs create_funct_1d_pairs CreateFunct1dPairs CreateFunct1dPairs create_funct_1d_pairs
can be
used to create a function. create_funct_1d_pairs create_funct_1d_pairs CreateFunct1dPairs CreateFunct1dPairs create_funct_1d_pairs
also allows
to define a function with non-equidistant x values by specifying them
explicitly. Thus to get the same definition as with
create_funct_1d_array create_funct_1d_array CreateFunct1dArray CreateFunct1dArray create_funct_1d_array
, one would pass a tuple of
x values to create_funct_1d_pairs create_funct_1d_pairs CreateFunct1dPairs CreateFunct1dPairs create_funct_1d_pairs
that has the same length
as YValues YValues YValues YValues yvalues
and contains values starting at 0 and increasing by
1 in each position. Note, however, that create_funct_1d_pairs create_funct_1d_pairs CreateFunct1dPairs CreateFunct1dPairs create_funct_1d_pairs
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_array create_funct_1d_array CreateFunct1dArray CreateFunct1dArray create_funct_1d_array
.
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
YValues YValues YValues YValues yvalues
(input_control) number(-array) →
HTuple MaybeSequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
X value for function points.
Function Function Function function function
(output_control) function_1d →
HFunction1D , HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Created function.
Possible Successors
write_funct_1d write_funct_1d WriteFunct1d WriteFunct1d write_funct_1d
,
y_range_funct_1d y_range_funct_1d YRangeFunct1d YRangeFunct1d y_range_funct_1d
,
get_pair_funct_1d get_pair_funct_1d GetPairFunct1d GetPairFunct1d get_pair_funct_1d
,
transform_funct_1d transform_funct_1d TransformFunct1d TransformFunct1d transform_funct_1d
Alternatives
create_funct_1d_pairs create_funct_1d_pairs CreateFunct1dPairs CreateFunct1dPairs create_funct_1d_pairs
,
read_funct_1d read_funct_1d ReadFunct1d ReadFunct1d read_funct_1d
See also
funct_1d_to_pairs funct_1d_to_pairs Funct1dToPairs Funct1dToPairs funct_1d_to_pairs
Module
Foundation