Advertisement
Guest User

Untitled

a guest
Sep 19th, 2015
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. var delayedCarbs = avgActivity * liverSensRatio * profile.getSensitivity(treatment.mills) / profile.getCarbRatio(treatment.mills);
  2. var delayMinutes = Math.round(delayedCarbs / profile.getCarbAbsorptionRate(treatment.mills) * 60);
  3.  
  4. avgActivity = ?
  5. liverSensRatio = ?
  6. getSensitivity = BG/U
  7. getCarbRatio = g/U
  8. getCarbAbsorbtionRate = g/min
  9.  
  10. 1/getCarbRatio = U/g
  11. 1/getCarbAbsorbtionRate = min/g
  12.  
  13. getSensitivity * 1/getCarbRatio = BG/U * U/g = BG/g (units of insulin cancel out)
  14. delayMinutes = BG/g * 1/getCarbAbsorbtionRate = BG/g * min/g = (BG * min) / g^2
  15.  
  16.  
  17. delayMinutes should be minutes, leaving avgActivity * liverSensRatio being g^2/BG?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement