Sha256: 98e0c3d563820b8b8b79e74107b0aa7cfc38923956cdfc46e9ab5cd02ad29a70

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

module Generators

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

    # 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

1 entries across 1 versions & 1 rubygems

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