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

# computeMedian(of:)

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

## Declaration

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

## Parameters

- `metric`: The metric to aggregate.

## See Also

### Computing standard aggregations

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