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.
-
#label ⇒ Object
Returns the value of attribute label.
-
#visited ⇒ Object
Returns the value of attribute visited.
Instance Method Summary collapse
-
#initialize(point, label) ⇒ Point
constructor
A new instance of Point.
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
#cluster ⇒ Object
Returns the value of attribute cluster.
102 103 104 |
# File 'lib/dbscan.rb', line 102 def cluster @cluster end |
#items ⇒ Object
Returns the value of attribute items.
102 103 104 |
# File 'lib/dbscan.rb', line 102 def items @items end |
#label ⇒ Object
Returns the value of attribute label.
102 103 104 |
# File 'lib/dbscan.rb', line 102 def label @label end |
#visited ⇒ Object
Returns the value of attribute visited.
102 103 104 |
# File 'lib/dbscan.rb', line 102 def visited @visited end |