You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logarithmic.rb
    path of file: ./repos/picky/server/lib/picky/generators/weights
    
    the code of the file until where you have to start completion: module Picky

  module Generators

    module Weights
      
      # Uses a logarithmic weight.
      #
      # If given a constant, this will be added to the weight.
      #
    
        def initialize constant = 0.0
          @constant = constant
          # # Note: Optimisation since it is called
          # # once per indexed object.
          # #
          # if constant == 0.0
          #   install_without_constant
          # else
          #   @constant = constant
          #   install_with_constant
          # end
        end