Generates a stopping condition that stops if half of the cluster changes are less than a threshold.
| Parameters: | threshold (number) – maximum change allowed for half of the clusters | 
|---|---|
| Return type: | callable that takes iterationNumber, corrections, values, datasetSize as arguments | 
| Returns: | stopping condition function |