# 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)

*** ** * ** ***


```
public final class StatisticalDataPoint<T extends Number> extends DataPoint<@NonNull T>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.health.services.client.data.DataPoint](https://developer.android.com/reference/androidx/health/services/client/data/DataPoint)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull) T\> ||
|   | ↳ | [androidx.health.services.client.data.StatisticalDataPoint](https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint) |

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `<T extends https://developer.android.com/reference/java/lang/Number.html> https://developer.android.com/reference/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)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/AggregateDataType<@https://developer.android.com/reference/androidx/annotation/NonNull T, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull T>> dataType, @https://developer.android.com/reference/androidx/annotation/NonNull T min, @https://developer.android.com/reference/androidx/annotation/NonNull T max, @https://developer.android.com/reference/androidx/annotation/NonNull T average, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html start, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html end )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull T` | `https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint#getAverage()()` The average observed value between `https://developer.android.com/reference/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/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint#getEnd()()` The end time this point covers. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull T` | `https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint#getMax()()` The maximum observed value between `https://developer.android.com/reference/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/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull T` | `https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint#getMin()()` The minimum observed value between `https://developer.android.com/reference/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/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/health/services/client/data/StatisticalDataPoint#getStart()()` The beginning of time this point covers. |

### Inherited methods

From [androidx.health.services.client.data.DataPoint](https://developer.android.com/reference/androidx/health/services/client/data/DataPoint) `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType<@https://developer.android.com/reference/androidx/annotation/NonNull T, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataPoint<@https://developer.android.com/reference/androidx/annotation/NonNull T>>` `https://developer.android.com/reference/androidx/health/services/client/data/DataPoint#getDataType()()`

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

## Public constructors

### StatisticalDataPoint

```
public <T extends Number> StatisticalDataPoint(
    @NonNull AggregateDataType<@NonNull T, @NonNull StatisticalDataPoint<@NonNull T>> dataType,
    @NonNull T min,
    @NonNull T max,
    @NonNull T average,
    @NonNull Instant start,
    @NonNull Instant end
)
```

## Public methods

### getAverage

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

```
public final @NonNull T getAverage()
```

The average observed value between `https://developer.android.com/reference/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/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`.

### getEnd

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

```
public final @NonNull Instant getEnd()
```

The end time this point covers.

### getMax

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

```
public final @NonNull T getMax()
```

The maximum observed value between `https://developer.android.com/reference/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/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`.

### getMin

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

```
public final @NonNull T getMin()
```

The minimum observed value between `https://developer.android.com/reference/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/androidx/health/services/client/data/StatisticalDataPoint#(androidx.health.services.client.data.AggregateDataType,kotlin.Number,kotlin.Number,kotlin.Number,java.time.Instant,java.time.Instant)`.

### getStart

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

```
public final @NonNull Instant getStart()
```

The beginning of time this point covers.