<!--
{
  "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 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/HumanBodyActionPeriodPredictor/Prediction/init(period:periodicity:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents30HumanBodyActionPeriodPredictorV10PredictionV6period11periodicityAESf_Sftcfc"
  },
  "title" : "init(period:periodicity:)"
}
-->

# init(period:periodicity:)

Creates a human body action period prediction.

```
init(period: Float, periodicity: Float)
```

## Parameters

`period`

A period length of a repetitive action.

`periodicity`

A value that indicates whether a frame belongs to a periodic action.

---

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)