---
title: "LSMMapCreateClusters(_:_:_:_:_:)"
framework: Latent Semantic Mapping
role: symbol
role_heading: Function
path: "latentsemanticmapping/lsmmapcreateclusters(_:_:_:_:_:)"
---

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

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

## Declaration

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

## Discussion

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

## See Also

### Starting Classification Mode

- [LSMMapCompile(_:)](latentsemanticmapping/lsmmapcompile(_:).md)
- [Clustering Flags](latentsemanticmapping/clustering-flags.md)
- [LSMMapApplyClusters(_:_:)](latentsemanticmapping/lsmmapapplyclusters(_:_:).md)
