Given the following:
Time series with
x
(time [s]) andy
(here discharge [m³/s])Value
V1
(same units integratedy
), smaller than the integral over all ofx
. In this case a small volume [m³].
I would like to calculate:
The
y
valuey_V1
such that the integral between the liney = y_V1
and the curvey
equalsV1
.The following plot shows this, the orange region is
V1
, I want the circled value on they
axis:The
V1
must be placed around the peak.
I think this must be an iterative process, where also a the fitting criteria (and the degree of exactness) must be set by the user.
Until now, I haven't found a way to start; besides the pure integration.
The idea is to specify an area. The y value left and right of the peak which envelops this area should be calculated.
Edit
This is the result, if the accepted answer is applied.