Class: Coletivo::Similarity::BaseStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/coletivo/similarity/base_strategy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#preferencesObject

Returns the value of attribute preferences.



4
5
6
# File 'lib/coletivo/similarity/base_strategy.rb', line 4

def preferences
  @preferences
end

Instance Method Details

#similarity_between(one, other) ⇒ Object



6
7
8
# File 'lib/coletivo/similarity/base_strategy.rb', line 6

def similarity_between(one, other)
  raise "The #similarity_between was not implemented in #{self.class}"
end

#train_with(people_preferences) ⇒ Object



10
11
12
# File 'lib/coletivo/similarity/base_strategy.rb', line 10

def train_with(people_preferences)
  @preferences = people_preferences
end