lib/picky/generators/weights_generator.rb in picky-2.6.0 vs lib/picky/generators/weights_generator.rb in picky-2.7.0
- old
+ new
@@ -2,13 +2,13 @@
# Uses a logarithmic algorithm as default.
#
class WeightsGenerator < Base
- # Generate a weights index based on the given index.
+ # Generate a weights index based on the given inverted index.
#
def generate strategy = Weights::Logarithmic.new
- strategy.generate_from self.index
+ strategy.generate_from self.inverted
end
end
end
\ No newline at end of file