Compute Glycemic Indices
- calc_glu(patient='XX', GluCible=array([[70, 140], [70, 180], [54, 200], [60, 300]]), intervals=array([], shape=(0, 2), dtype=float64), WRITE='a', encoding='utf-8', verbose=False, interp=False)
Function to compute glycemic statistics of a patient glycemic time series, located in the folder DATA_DIR/patient/
Parameters
- patientstr
Name of the folder containing all patient’s data in the DATA_DIR folder, which is ./Data/ by default.
- GluCiblearray
(n,2) array containing the values of glycemic levels for hypo and hyper glycemia
- WRITE‘a’, ‘w’
‘a’ append or ‘r’ replace result file
- encodingstr
(old) Used to force glycemic file encoding
- verboseTrue/False
To display more results
- interpFalse/True
To compute statistics on interpolated data rather than raw sensor data
- returns:
Bool
Returns
- bool
if result is successfull