Class: DBSCAN::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/dbscan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(point, label) ⇒ Point

Returns a new instance of Point.



105
106
107
# File 'lib/dbscan.rb', line 105

def initialize( point, label )
	@items, @cluster, @visited, @label = point, nil, false, label
end

Instance Attribute Details

#clusterObject

Returns the value of attribute cluster.



102
103
104
# File 'lib/dbscan.rb', line 102

def cluster
  @cluster
end

#itemsObject

Returns the value of attribute items.



102
103
104
# File 'lib/dbscan.rb', line 102

def items
  @items
end

#labelObject

Returns the value of attribute label.



102
103
104
# File 'lib/dbscan.rb', line 102

def label
  @label
end

#visitedObject

Returns the value of attribute visited.



102
103
104
# File 'lib/dbscan.rb', line 102

def visited
  @visited
end