KMeans constructor

KMeans(
  1. int k, {
  2. int maxIter = 300,
  3. double tol = 1e-4,
})

Implementation

KMeans(this.k, {this.maxIter = 300, this.tol = 1e-4}) {
  if (k <= 0) throw ArgumentError('k must be positive');
}