Class: SameSame::ClusterSimilarity

Inherits:
Struct
  • Object
show all
Includes:
Comparable
Defined in:
lib/same_same/cluster_similarity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cluster_keyObject

Returns the value of attribute cluster_key

Returns:

  • (Object)

    the current value of cluster_key



3
4
5
# File 'lib/same_same/cluster_similarity.rb', line 3

def cluster_key
  @cluster_key
end

#goodnessObject

Returns the value of attribute goodness

Returns:

  • (Object)

    the current value of 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