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