glucopy.Gframe.gvp#

Gframe.gvp()[source]#

Calculates the Glucose Variability Percentage (GVP), with time in minutes.

\[GVP = \left( \frac{L}{T_0} - 1\right) * 100\]
  • \(L = \sum_{i=1}^N \sqrt{\Delta X_i^2 + \Delta T_i^2}\)

  • \(T_0 = \sum_{i=1}^N \Delta T_i\)

  • \(N\) is the number of glucose readings.

  • \(\Delta X_i\) is the difference between glucose values at time i and i-1.

  • \(\Delta T_i\) is the difference between times at time i and i-1.

Parameters:

None

Returns:

gvp – Glucose Variability Percentage.

Return type:

float

Examples

In [1]: import glucopy as gp

In [2]: gf = gp.data('prueba_1')

In [3]: gf.gvp()
Out[3]: 33.76052564549197