Functions, rates of change and averages · Formula 6.15

Energy from unevenly sampled measurements

E≈∑k=0n−1Pk+Pk+12(tk+1−tk),E=∑kPˉkΔtkfor interval averagesE\approx\sum_{k=0}^{n-1}\frac{P_k+P_{k+1}}2(t_{k+1}-t_k),\qquad E=\sum_k\bar P_k\Delta t_k\quad\text{for interval averages}

Your values

Decimal comma or decimal point, without thousands separators. The selected unit applies to the numerical value entered.

Your calculation method

Units · Calculation relationship · Results
From the formula collection

The explanation of the formula

The trapezoidal rule connects adjacent instantaneous values linearly. Each segment has its own duration; a missing measurement must not be silently replaced by a normal interval. If the meter already provides averages over complete intervals, the rectangle sum using those exact interval durations is correct. Applying a second trapezoidal average would smooth such values again and change the energy balance. Timestamps must be defined as the interval start, interval end or measurement time.

Example from the book

Instantaneous power values of 00, 22 and 2 kW2\un{kW} at 00, 0.250.25 and 1 h1\un h give 0.25+1.5=1.75 kWh0.25+1.5=1.75\un{kWh}. If the same numbers are interval averages, the necessary information is missing without the interval boundaries. UTC timestamps are useful for daily and annual data; otherwise, local daylight saving time changes produce duplicate or missing times.

Formelsammlung Strom · Erik Schmidt · Formula 6.15