<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/LSMMapCreateClusters(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "c:@F@LSMMapCreateClusters"
  },
  "title" : "LSMMapCreateClusters(_:_:_:_:_:)"
}
-->

# LSMMapCreateClusters(_:_:_:_:_:)

Computes a set of clusters that group similar categories or words.

```
func LSMMapCreateClusters(_ alloc: CFAllocator?, _ mapref: LSMMap, _ subset: CFArray?, _ numClusters: CFIndex, _ flags: CFOptionFlags) -> Unmanaged<CFArray>?
```

## Discussion

If `subset` is non-`NULL`, this function only performs clustering on the categories or words in `subset`.

---

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)