integrate_funct_1dT_integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d(算子)
名称
integrate_funct_1dT_integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d — 计算函数的正负面积。
签名
def integrate_funct_1d(function: Sequence[float]) -> Tuple[float, Sequence[float]]
描述
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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
FunctionFunctionFunctionFunctionfunctionfunction (输入控制) function_1d → HFunction1D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
输入函数。
PositivePositivePositivePositivepositivepositive (输出控制) number → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Area under the positive part of the function.
NegativeNegativeNegativeNegativenegativenegative (输出控制) number-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Area under the negative part of the function.
可能的前趋
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
另见
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array,
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
模块
基础