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

# computeMaximum(of:)

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

## Declaration

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

## Parameters

- `metric`: The metric to aggregate.

## See Also

### Computing standard aggregations

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