Sha256: 63f93c01669934c263e23f25c6def6198749f5e15773f0ccee58137f3b99fa86

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/generators/weights_generator.rb