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

# computeVariance(of:)

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

## Declaration

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

## Parameters

- `metric`: The metric to aggregate.
