TimeSeries

sealed class TimeSeries<T> : ManageTimeSeries<T>

Utility class to hold a pair of lists, one with the score values and one with the timestamps

Inheritors

Types

Link copied to clipboard
class DoubleTimeSeries(values: List<Double> = mutableListOf(), timestamps: List<ZonedDateTime> = mutableListOf(), confidenceIntervalLow: List<Double> = mutableListOf(), confidenceIntervalHigh: List<Double> = mutableListOf(), confidence: List<Double> = mutableListOf()) : TimeSeries<Double>
Link copied to clipboard
class ScreenTimeAggregateTimeSeries(values: List<ScreenTimeAggregate> = mutableListOf(), timestamps: List<ZonedDateTime> = mutableListOf(), confidenceIntervalLow: List<ScreenTimeAggregate> = mutableListOf(), confidenceIntervalHigh: List<ScreenTimeAggregate> = mutableListOf(), confidence: List<Double> = mutableListOf()) : TimeSeries<ScreenTimeAggregate>
Link copied to clipboard
class SleepSummaryTimeTimeSeries(values: List<SleepSummary> = mutableListOf(), timestamps: List<ZonedDateTime> = mutableListOf(), confidenceIntervalLow: List<SleepSummary> = mutableListOf(), confidenceIntervalHigh: List<SleepSummary> = mutableListOf(), confidence: List<Double> = mutableListOf()) : TimeSeries<SleepSummary>
Link copied to clipboard
class TrendTimeSeries(values: List<TrendHolder> = mutableListOf(), timestamps: List<ZonedDateTime> = mutableListOf(), confidenceIntervalLow: List<TrendHolder> = mutableListOf(), confidenceIntervalHigh: List<TrendHolder> = mutableListOf(), confidence: List<Double> = mutableListOf()) : TimeSeries<TrendHolder>

Properties

Link copied to clipboard
override var confidence: List<Double>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int

Number of data points in the time series

Link copied to clipboard

timestamps relative to the score, are always normalized to the CURRENT local time zone of the device

Link copied to clipboard
override var values: List<T>

values of the score