<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents30HumanBodyActionPeriodPredictorV10PredictionV"
  },
  "title" : "HumanBodyActionPeriodPredictor.Prediction"
}
-->

# HumanBodyActionPeriodPredictor.Prediction

A human body action period prediction.

```
struct Prediction
```

## Topics

### Creating a prediction

[`init(period: Float, periodicity: Float)`](/documentation/CreateMLComponents/HumanBodyActionPeriodPredictor/Prediction/init(period:periodicity:))

Creates a human body action period prediction.

### Getting the properties

[`var period: Float`](/documentation/CreateMLComponents/HumanBodyActionPeriodPredictor/Prediction/period)

The duration of a human body action measured in frames.

[`var periodicity: Float`](/documentation/CreateMLComponents/HumanBodyActionPeriodPredictor/Prediction/periodicity)

A score that indicates whether this frame contributes to a periodic human body action.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)