Sha256: ec792472e0ce155e265b07853e470a0f0de60c4007aaa7689b25e8786002c544

Contents?: true

Size: 277 Bytes

Versions: 53

Compression:

Stored size: 277 Bytes

Contents

module Cacher

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

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

  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
picky-0.2.3 lib/picky/cacher/weights_generator.rb
picky-0.2.2 lib/picky/cacher/weights_generator.rb
picky-0.2.1 lib/picky/cacher/weights_generator.rb
picky-0.2.0 lib/picky/cacher/weights_generator.rb
picky-0.1.0 lib/picky/cacher/weights_generator.rb
picky-0.0.9 lib/picky/cacher/weights_generator.rb
picky-0.0.8 lib/picky/cacher/weights_generator.rb
picky-0.0.7 lib/picky/cacher/weights_generator.rb
picky-0.0.6 lib/picky/cacher/weights_generator.rb
picky-0.0.5 lib/picky/cacher/weights_generator.rb
picky-0.0.4 lib/picky/cacher/weights_generator.rb
picky-0.0.3 lib/picky/cacher/weights_generator.rb
picky-0.0.2 lib/picky/cacher/weights_generator.rb