---
title: "init(estimatedRange:batteryTemperature:)"
framework: energykit
role: symbol
role_heading: Initializer
path: "energykit/electricvehicleloadevent/electricalmeasurement/performancemetrics-swift.struct/init(estimatedrange:batterytemperature:)"
---

# init(estimatedRange:batteryTemperature:)

Creates performance metrics for the current measurement.

## Declaration

```swift
init(estimatedRange: Measurement<UnitLength>? = nil, batteryTemperature: Measurement<UnitTemperature>? = nil)
```

## Parameters

- `estimatedRange`: The estimated range of driving distance based on the current energy state, or nil if an estimate is unavailable.
- `batteryTemperature`: The battery pack temperature, or nil if the temperature is unavailable.
