StatisticalDataPoint


class StatisticalDataPointNumber> : DataPoint

Data point that represents statistics on SampleDataPoints between start and end, though it is not required to request samples separately.

Summary

Public constructors

Number> StatisticalDataPoint(
    dataType: AggregateDataTypeStatisticalDataPoint>,
    min: T,
    max: T,
    average: T,
    start: Instant,
    end: Instant
)

Public properties

T

The average observed value between start and end.

Instant

The end time this point covers.

T

The maximum observed value between start and end.

T

The minimum observed value between start and end.

Instant

The beginning of time this point covers.

Inherited properties

From androidx.health.services.client.data.DataPoint
open DataTypeDataPoint>

Type of data contained within this DataPoint.

Public constructors

StatisticalDataPoint

Number> StatisticalDataPoint(
    dataType: AggregateDataTypeStatisticalDataPoint>,
    min: T,
    max: T,
    average: T,
    start: Instant,
    end: Instant
)

Public properties

average

Added in 1.0.0
val average: T

The average observed value between start and end.

end

Added in 1.0.0
val endInstant

The end time this point covers.

max

Added in 1.0.0
val max: T

The maximum observed value between start and end.

min

Added in 1.0.0
val min: T

The minimum observed value between start and end.

start

Added in 1.0.0
val startInstant

The beginning of time this point covers.