<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Audio/Scattering/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5AudioO10ScatteringVyAESDyS2fGcfc::OverloadGroup"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a scattering data set from a sequence of pairs of center frequency and scattering coefficient.

```
init(_ coefficientByFrequency: [Float : Float])
```

## Discussion

The scattering coefficient is a value between zero and one that describes the proportion of
incident sound energy that is diffused or redirected by a surface, rather than absorbed.

The values will be interpolated and/or extrapolated to cover the audible frequency range.

```
let data = Audio.Scattering([500: 0.3, 1000: 0.4, 4000: 0.5])
```

---

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)