Class: SameSame::ClusterSimilarity
- Inherits:
-
Struct
- Object
- Struct
- SameSame::ClusterSimilarity
- Includes:
- Comparable
- Defined in:
- lib/same_same/cluster_similarity.rb
Instance Attribute Summary collapse
-
#cluster_key ⇒ Object
Returns the value of attribute cluster_key.
-
#goodness ⇒ Object
Returns the value of attribute goodness.
Instance Method Summary collapse
Instance Attribute Details
#cluster_key ⇒ Object
Returns the value of attribute cluster_key
3 4 5 |
# File 'lib/same_same/cluster_similarity.rb', line 3 def cluster_key @cluster_key end |
#goodness ⇒ Object
Returns the value of attribute goodness
3 4 5 |
# File 'lib/same_same/cluster_similarity.rb', line 3 def goodness @goodness end |
Instance Method Details
#<=>(other) ⇒ Object
5 6 7 |
# File 'lib/same_same/cluster_similarity.rb', line 5 def <=>(other) goodness <=> other.goodness end |