Class: Kmeans::Bicluster
- Inherits:
-
Object
- Object
- Kmeans::Bicluster
- Defined in:
- lib/kmeans/hcluster.rb
Instance Attribute Summary collapse
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#id ⇒ Object
Returns the value of attribute id.
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
-
#vec ⇒ Object
Returns the value of attribute vec.
Instance Method Summary collapse
-
#initialize(vec, left = nil, right = nil, distance = 0.0, id = nil) ⇒ Bicluster
constructor
A new instance of Bicluster.
Constructor Details
#initialize(vec, left = nil, right = nil, distance = 0.0, id = nil) ⇒ Bicluster
Returns a new instance of Bicluster.
5 6 7 8 9 10 11 |
# File 'lib/kmeans/hcluster.rb', line 5 def initialize(vec, left=nil, right=nil, distance=0.0, id=nil) @left = left @right = right @vec = vec @id = id @distance = distance end |
Instance Attribute Details
#distance ⇒ Object
Returns the value of attribute distance.
13 14 15 |
# File 'lib/kmeans/hcluster.rb', line 13 def distance @distance end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/kmeans/hcluster.rb', line 13 def id @id end |
#left ⇒ Object
Returns the value of attribute left.
13 14 15 |
# File 'lib/kmeans/hcluster.rb', line 13 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
13 14 15 |
# File 'lib/kmeans/hcluster.rb', line 13 def right @right end |
#vec ⇒ Object
Returns the value of attribute vec.
13 14 15 |
# File 'lib/kmeans/hcluster.rb', line 13 def vec @vec end |