gastropy.proportion_normogastric#
- gastropy.proportion_normogastric(cycle_durations, dur_min=15.0, dur_max=30.0)[source]#
Compute the proportion of cycles in the normogastric range.
Normogastric cycles have durations between 15 and 30 seconds (corresponding to 2-4 cycles per minute).
- Parameters:
- Returns:
Proportion of cycles within the normogastric range (0 to 1). NaN if no cycles provided.
- Return type:
Examples
>>> from gastropy.metrics import proportion_normogastric >>> proportion_normogastric([20.0, 22.0, 10.0, 35.0]) 0.5