StatisticalDataPoint

class StatisticalDataPoint<T : Number> : DataPoint


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

Summary

Public constructors

<T : Number> StatisticalDataPoint(
    dataType: AggregateDataType<T, StatisticalDataPoint<T>>,
    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 DataType<T, DataPoint<T>>

Type of data contained within this DataPoint.

Public constructors

StatisticalDataPoint

<T : Number> StatisticalDataPoint(
    dataType: AggregateDataType<T, StatisticalDataPoint<T>>,
    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.