roqua / physiqual

Ruby Engine for merging various datasources with diary questionnaire data
MIT License
1 stars 1 forks source link

Expose the sleep measure #45

Open frbl opened 9 years ago

emerencia commented 8 years ago

The decision here was that the "sleep" variable is to represent the sleep duration in minutes, for each measurement as sum of the times slept since the previous measurement. If a reported sleep event spans multiple measurement intervals, assign to each interval the minutes slept during that intervals only (i.e., even if those correspond to only part of a sleep event).

frbl commented 8 years ago

In order to implement this, I think the fields we currently support should change a bit. Instead of merely giving the middle time of a measurement, we really need the begin and end times for the measurement. This is not really a big deal, but should be implemented.