# StatisticalDataPoint

Artifact: [androidx.health:health-services-client](https://developer.android.com/jetpack/androidx/releases/health) [View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/StatisticalDataPoint.kt+class:androidx.health.services.client.data.StatisticalDataPoint) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***


```
class StatisticalDataPoint<T : Number> : DataPoint<T>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.health.services.client.data.DataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint)\<T\> ||
|   | ↳ | [androidx.health.services.client.data.StatisticalDataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint) |

*** ** * ** ***

Data point that represents statistics on `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/SampleDataPoint`s between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#start()` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#end()`, though it is not required to request samples separately.

## Summary

| ### Public constructors |
|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-number/index.html> https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#StatisticalDataPoint(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)( dataType: https://developer.android.com/reference/kotlin/androidx/health/services/client/data/AggregateDataType<T, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint<T>>, min: T, max: T, average: T, start: https://developer.android.com/reference/java/time/Instant.html, end: https://developer.android.com/reference/java/time/Instant.html )` |

| ### Public properties |
|---|---|
| `T` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#average()` The average observed value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`. |
| `https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#end()` The end time this point covers. |
| `T` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#max()` The maximum observed value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`. |
| `T` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#min()` The minimum observed value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`. |
| `https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#start()` The beginning of time this point covers. |

### Inherited properties

From [androidx.health.services.client.data.DataPoint](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint) `open https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType<T, https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint<T>>` `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPoint#dataType()`

Type of data contained within this `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/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](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val average: T
```

The average observed value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`.

### end

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val end: Instant
```

The end time this point covers.

### max

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val max: T
```

The maximum observed value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`.

### min

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val min: T
```

The minimum observed value between `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)` and `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`.

### start

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val start: Instant
```

The beginning of time this point covers.