# Cluster analysis

Input: | Output:

This modifier decomposes a particle system into clusters by grouping particles into disconnected sets. Each particle is assigned a cluster ID by this modifier.

A cluster is defined as a set of particles, each of which is within the cutoff distance from one or more other particles in the cluster. If a particle has no neighbors within the cutoff distance, then it forms a 1-particle cluster.

The modifier writes its results to the `Cluster` particle property, which stores the cluster ID assigned to each particle. Clusters have identifiers 1 to N, where N is the number of clusters found by the modifier.

## Parameters

Cutoff radius

  The maximum distance between two particles up to which they are considered neighbors that belong to the same cluster.