@tidepool/viz@0.8.1 apidocs /Users/jebeck/Tidepool/viz jsdoc2md "src/utils/basal.js"
Functions
- getBasalSequences(basals) ⇒
Array getBasalSequences
- getTotalBasal(basals) ⇒
Number getTotalBasal
getBasalSequences(basals) ⇒ Array
getBasalSequences
Kind: global function
Returns: Array - Array of Arrays where each component Array is a sequence of basals
of the same subType to be rendered as a unit
| Param | Type | Description |
|---|---|---|
| basals | Array |
Array of preprocessed Tidepool basal objects |
getTotalBasal(basals) ⇒ Number
getTotalBasal
Kind: global function
Returns: Number - total basal insulin in units
| Param | Type | Description |
|---|---|---|
| basals | Array |
Array of preprocessed Tidepool basal objects trimmed to fit within the timespan the total basal is being calculated over |