KmeansOptions
KmeansOptions =
object
Defined in: kmeans.ts:50
Properties
Section titled “Properties”convergenceThreshold?
Section titled “convergenceThreshold?”
optionalconvergenceThreshold?:number
Defined in: kmeans.ts:57
Stop when the largest centroid movement in an iteration is below this value. Default 0.0001.
maxIterations?
Section titled “maxIterations?”
optionalmaxIterations?:number
Defined in: kmeans.ts:52
Maximum number of assignment–update iterations before stopping. Default 200.
randFn?
Section titled “randFn?”
optionalrandFn?:RandomFn|null
Defined in: kmeans.ts:59
Optional PRNG for deterministic seeding. Default: Math.random.