<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP_normalize",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vDSP_normalize"
  },
  "title" : "vDSP_normalize"
}
-->

# vDSP_normalize

Computes single-precision mean and standard deviation, and then calculates new elements to have a zero mean and a unit standard deviation.

```
extern void vDSP_normalize(const float *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, float *__Mean, float *__StandardDeviation, vDSP_Length __N);
```

## Parameters

`__A`

Single-precision input vector.

`__IA`

Stride for `A`.

`__C`

Single-precision output vector, or `NULL` (see Discussion below).

`__IC`

Stride for `C`.

`__Mean`

Single-precision mean of the elements of `A`.

`__StandardDeviation`

Single-precision standard deviation of the elements of `A`.

`__N`

Number of elements in `A`.

## Discussion

The function calculates values for `Mean` and `StandardDeviation`, then calculates new values for `A` to have a zero mean and unit standard deviation.

For iOS 9.0 and later or macOS 10.11 and later, the production of new elements may be omitted by passing `NULL` for `C`. In this case `A` remains unchanged.

---

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)