Herror ::integrate_funct_1d (
    const HTuple &Function,
    HTuple *Positive,
    HTuple *Negative
)

Compute the positive and negative areas of a function.

::integrate_funct_1d integrates the function Function (see ::create_funct_1d_array and ::create_funct_1d_pairs) and returns the integral of the positive and negative parts of the function in Positive and Negative, respectively. Hence, the integral of the function is the difference Positive - Negative. The integration is done on the interval on which the function is defined. For the integration, the function is interpolated linearly.


Parameters

Function (input_control)
function_1d-array -> HTuple.double
Input function.

Positive (output_control)
number -> HTuple.double *
Area under the positive part of the function.

Negative (output_control)
number-array -> HTuple.double *
Area under the negative part of the function.


Possible Predecessors

::create_funct_1d_pairs, ::create_funct_1d_array


See also

::create_funct_1d_array, ::create_funct_1d_pairs


Module

Tools



Copyright © 1996-2002 MVTec Software GmbH