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.3.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.2.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.1.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-1.0.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.7.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.6.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.5.1 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.5.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.4.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.3.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.2.1 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.2.0 lib/everyday-cli-utils/kmeans.rb
everyday-cli-utils-0.1.0 lib/everyday-cli-utils/kmeans.rb