diabetic-utils / calculateTimeInRange
calculateTimeInRange(
readings
,lower
,upper
):number
Defined in: tir.ts:77
Calculates the percentage of glucose readings within a specified numeric range. Used for clinical TIR analytics and custom range assessments.
number
[]
Array of glucose values (numbers) to analyze
number
Lower bound of the target range (inclusive)
number
Upper bound of the target range (inclusive)
number
Percentage of readings within the specified range (0-100)