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

# computeMaximum(of:)

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

## Declaration

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

## Parameters

- `metric`: The metric to aggregate.
