Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var delayedCarbs = avgActivity * liverSensRatio * profile.getSensitivity(treatment.mills) / profile.getCarbRatio(treatment.mills);
- var delayMinutes = Math.round(delayedCarbs / profile.getCarbAbsorptionRate(treatment.mills) * 60);
- avgActivity = ?
- liverSensRatio = ?
- getSensitivity = BG/U
- getCarbRatio = g/U
- getCarbAbsorbtionRate = g/min
- 1/getCarbRatio = U/g
- 1/getCarbAbsorbtionRate = min/g
- getSensitivity * 1/getCarbRatio = BG/U * U/g = BG/g (units of insulin cancel out)
- delayMinutes = BG/g * 1/getCarbAbsorbtionRate = BG/g * min/g = (BG * min) / g^2
- delayMinutes should be minutes, leaving avgActivity * liverSensRatio being g^2/BG?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement