<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/MinMaxScaler/Transformer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents12MinMaxScalerV11TransformerV"
  },
  "title" : "MinMaxScaler.Transformer"
}
-->

# MinMaxScaler.Transformer

A transformer that scales the input values so that they all lie in a closed range.

```
struct Transformer
```

## Topics

### Creating a transformer

[`init(desiredRange: ClosedRange<Element>, fittedRange: ClosedRange<Element>)`](/documentation/CreateMLComponents/MinMaxScaler/Transformer/init(desiredRange:fittedRange:))

Creates a minmax scaling transformer.

### Getting the properties

[`var desiredRange: ClosedRange<Element>`](/documentation/CreateMLComponents/MinMaxScaler/Transformer/desiredRange)

The desired range of transformed values.

[`var fittedRange: ClosedRange<Element>`](/documentation/CreateMLComponents/MinMaxScaler/Transformer/fittedRange)

The fitted range derived by the estimator when fitting.

### Performing the transformation

[`func applied(to: Element, eventHandler: EventHandler?) -> Element`](/documentation/CreateMLComponents/MinMaxScaler/Transformer/applied(to:eventHandler:))

Scales the input values so that they all lie in the closed range `[minimum, maximum]`.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`Encodable`](/documentation/Swift/Encodable)

[`Hashable`](/documentation/Swift/Hashable)

[`Transformer`](/documentation/CreateMLComponents/Transformer)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)