integrate_funct_1dT_integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d (Operator)
Name
integrate_funct_1dT_integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d
— Compute the positive and negative areas of a function.
Signature
def integrate_funct_1d(function: Sequence[float]) -> Tuple[float, Sequence[float]]
Description
integrate_funct_1dintegrate_funct_1dIntegrateFunct1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d
integrates the function FunctionFunctionFunctionFunctionfunctionfunction
(see create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
and create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
)
and returns the integral of the positive and negative parts of the
function in PositivePositivePositivePositivepositivepositive
and NegativeNegativeNegativeNegativenegativenegative
, respectively.
Hence, the integral of the function is the difference
PositivePositivePositivePositivepositivepositive
- NegativeNegativeNegativeNegativenegativenegative
. The integration is done on
the interval on which the function is defined. For the integration,
the function is interpolated linearly.
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
FunctionFunctionFunctionFunctionfunctionfunction
(input_control) function_1d →
HFunction1D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Input function.
PositivePositivePositivePositivepositivepositive
(output_control) number →
HTuplefloatHTupleHtuple (real) (double) (double) (double)
Area under the positive part of the function.
NegativeNegativeNegativeNegativenegativenegative
(output_control) number-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Area under the negative part of the function.
Possible Predecessors
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
See also
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
,
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
Module
Foundation