Skip to content

Instantly share code, notes, and snippets.

@kalelc
Created October 20, 2016 14:02
Show Gist options
  • Save kalelc/0cdf6f4696a77ef5d798a45c125a4e20 to your computer and use it in GitHub Desktop.
Save kalelc/0cdf6f4696a77ef5d798a45c125a4e20 to your computer and use it in GitHub Desktop.
module Kmeans
class Point
attr_accessor :x, :y
def initialize(x,y)
@x = x
@y = y
end
def to_a
[@x, @y]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment