Class: DBSCAN::Point
- Inherits:
-
Object
- Object
- DBSCAN::Point
- Defined in:
- lib/dbscan.rb
Instance Attribute Summary collapse
-
#cluster ⇒ Object
Returns the value of attribute cluster.
-
#items ⇒ Object
Returns the value of attribute items.
-
#visited ⇒ Object
Returns the value of attribute visited.
Instance Method Summary collapse
-
#initialize(point) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(point) ⇒ Point
Returns a new instance of Point.
91 92 93 |
# File 'lib/dbscan.rb', line 91 def initialize( point ) @items, @cluster, @visited = point, nil, false end |
Instance Attribute Details
#cluster ⇒ Object
Returns the value of attribute cluster.
88 89 90 |
# File 'lib/dbscan.rb', line 88 def cluster @cluster end |
#items ⇒ Object
Returns the value of attribute items.
88 89 90 |
# File 'lib/dbscan.rb', line 88 def items @items end |
#visited ⇒ Object
Returns the value of attribute visited.
88 89 90 |
# File 'lib/dbscan.rb', line 88 def visited @visited end |