Sha256: 87881c261c925e7c97d3082e24ca67e793bc3366fcbb830765c1b4d9412660a5

Contents?: true

Size: 428 Bytes

Versions: 33

Compression:

Stored size: 428 Bytes

Contents

require_relative 'safe/kmeans'

module Enumerable
  def outliers(sensitivity = 0.5, k = nil)
    EverydayCliUtils::Kmeans.outliers(self, sensitivity, k)
  end

  def nmeans(max_k = 10, threshold = 0.05)
    EverydayCliUtils::Kmeans.nmeans(self, max_k, threshold)
  end

  def kmeans(k)
    EverydayCliUtils::Kmeans.kmeans(self, k)
  end

  def get_clusters(means)
    EverydayCliUtils::Kmeans.get_clusters(self, means)
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
everyday-cli-utils-1.8.7.2 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.7.1 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.7 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.6 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.5 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.4 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.3 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.2 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.1 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.8.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.7.4 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.7.3 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.7.2 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.7.1 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.7.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.6.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.5.2 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.5.1 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.5.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.4.0 lib/everyday-cli-utils/kmeans.rb