<!--
{
  "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/NormalizationScaler",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents19NormalizationScalerV"
  },
  "title" : "NormalizationScaler"
}
-->

# NormalizationScaler

An estimator that normalizes the input values using a normalization strategy.

```
struct NormalizationScaler<Element> where Element : BinaryFloatingPoint, Element : Decodable, Element : Encodable
```

## Topics

### Creating a scaler

[`init(norm: NormalizationScaler<Element>.NormalizationStrategy)`](/documentation/CreateMLComponents/NormalizationScaler/init(norm:))

Creates a normalization scaler.

[`enum NormalizationStrategy`](/documentation/CreateMLComponents/NormalizationScaler/NormalizationStrategy)

A normalization strategy.

### Getting the normalization

[`var norm: NormalizationScaler<Element>.NormalizationStrategy`](/documentation/CreateMLComponents/NormalizationScaler/norm)

The normalization strategy.

### Fitting

[`func fitted<S>(to: S, eventHandler: EventHandler?) throws -> NormalizationScaler<Element>.Transformer`](/documentation/CreateMLComponents/NormalizationScaler/fitted(to:eventHandler:))

Fits a normalization scaler to a sequence of elements.

### Default Implementations

[Estimator Implementations](/documentation/CreateMLComponents/NormalizationScaler/Estimator-Implementations)

## Relationships

### Conforms To

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

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

[`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)