class KMeansPP::Point

Point of the data set.

Attributes

group[RW]

Group is a centroid point.

@return [Centroid]

original[RW]

The original object (could be anything from Hash to an Object).

@return [Object]

Public Class Methods

new(x = 0.0, y = 0.0, group = nil) click to toggle source

Create a new point (data set point or a centroid).

@param x [Float] X coordinate of the point. @param y [Float] Y coordinate of the point. @param group [Centroid] Group is a centroid point.

# File lib/k_means_pp/point.rb, line 49
def initialize(x = 0.0, y = 0.0, group = nil)
  self.x     = x
  self.y     = y
  self.group = group
end