<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Evaluations",
  "identifier" : "/documentation/Evaluations/MetricsAggregator/Group",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations17MetricsAggregatorV5GroupV"
  },
  "title" : "MetricsAggregator.Group"
}
-->

# MetricsAggregator.Group

A grouped collection of related metrics.

```
struct Group
```

## Overview

Use `Group` within [`group(_:_:)`](/documentation/Evaluations/MetricsAggregator/group(_:_:)) to add metrics
to display together.

## Topics

### Instance Properties

[`let name: String`](/documentation/Evaluations/MetricsAggregator/Group/name)

The name of this group.

### Instance Methods

[`func computeMaximum(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeMaximum(of:))

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

[`func computeMean(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeMean(of:))

Computes the mean of a metric and adds it to the group.

[`func computeMedian(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeMedian(of:))

Computes the median of a metric and adds it to the group.

[`func computeMinimum(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeMinimum(of:))

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

[`func computeMode(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeMode(of:))

Computes the mode of a metric and adds it to the group.

[`func computeStandardDeviation(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeStandardDeviation(of:))

Computes the standard deviation of a metric and adds it to the group.

[`func computeVariance(of: Metric)`](/documentation/Evaluations/MetricsAggregator/Group/computeVariance(of:))

Computes the variance of a metric and adds it to the group.

[`func custom(of: Metric, label: String, ([Double]) -> Double)`](/documentation/Evaluations/MetricsAggregator/Group/custom(of:label:_:))

Computes a custom aggregation and adds it to the group.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)