Sha256: 49b5d0c4f2c4c4fac0d553314cdf95539894d29db43f2500c4818620226c7113

Contents?: true

Size: 329 Bytes

Versions: 24

Compression:

Stored size: 329 Bytes

Contents

module Picky

  module Generators

    # Uses a logarithmic algorithm as default.
    #
    class WeightsGenerator < Base

      # Generate a weights index based on the given inverted index.
      #
      def generate strategy = Weights::Logarithmic.new
        strategy.generate_from self.inverted
      end

    end

  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
picky-3.3.1 lib/picky/generators/weights_generator.rb
picky-3.3.0 lib/picky/generators/weights_generator.rb
picky-3.2.0 lib/picky/generators/weights_generator.rb
picky-3.1.13 lib/picky/generators/weights_generator.rb
picky-3.1.12 lib/picky/generators/weights_generator.rb
picky-3.1.11 lib/picky/generators/weights_generator.rb
picky-3.1.10 lib/picky/generators/weights_generator.rb
picky-3.1.9 lib/picky/generators/weights_generator.rb
picky-3.1.8 lib/picky/generators/weights_generator.rb
picky-3.1.7 lib/picky/generators/weights_generator.rb
picky-3.1.6 lib/picky/generators/weights_generator.rb
picky-3.1.5 lib/picky/generators/weights_generator.rb
picky-3.1.4 lib/picky/generators/weights_generator.rb
picky-3.1.3 lib/picky/generators/weights_generator.rb
picky-3.1.2 lib/picky/generators/weights_generator.rb
picky-3.1.1 lib/picky/generators/weights_generator.rb
picky-3.1.0 lib/picky/generators/weights_generator.rb
picky-3.0.1 lib/picky/generators/weights_generator.rb
picky-3.0.0 lib/picky/generators/weights_generator.rb
picky-3.0.0.pre5 lib/picky/generators/weights_generator.rb