---
title: "computeMean(of:)"
framework: evaluations
role: symbol
role_heading: Instance Method
path: "evaluations/metricsaggregator/computemean(of:)"
---

# computeMean(of:)

Computes the mean of a metric and adds it to the aggregated results.

## Declaration

```swift
mutating func computeMean(of metric: Metric)
```

## Parameters

- `metric`: The metric to aggregate.

## See Also

### Computing standard aggregations

- [computeMedian(of:)](evaluations/metricsaggregator/computemedian(of:).md)
- [computeMode(of:)](evaluations/metricsaggregator/computemode(of:).md)
- [computeMinimum(of:)](evaluations/metricsaggregator/computeminimum(of:).md)
- [computeMaximum(of:)](evaluations/metricsaggregator/computemaximum(of:).md)
