lib/derivation_strategy/random_dampened.rb
def build_production_proxies(grammar, damping)
        @production_proxies = {}
        grammar.nonterminals.each do |nonterminal|
          @production_proxies[nonterminal] = DampenedProbabilityProductionChoiceProxy.new(nonterminal, damping)
        end
      end
# Initializes the derivator.  The damping factor is a number betweeon 0.0 and 1.0.  In
# general, the smaller the number the shorter the senetence generated by the derivator.
# If the number is close to 1.0, it is possible that you will encounter stack errors!
Initializes the derivator.  The damping factor is a number betweeon 0.0 and 1.0.  In
general, the smaller the number the shorter the senetence generated by the derivator.
If the number is close to 1.0, it is possible that you will encounter stack errors!
Initializes the derivator . The damping factor is a number betweeon 0 . 0 and 1 . 0 . In general the smaller the number the shorter the senetence generated by the derivator . If the number is close to 1 . 0 it is possible that you will encounter stack errors!
def build_production_proxies(grammar, damping)
        @production_proxies = {}
        grammar.nonterminals.each do |nonterminal|
          @production_proxies[nonterminal] = DampenedProbabilityProductionChoiceProxy.new(nonterminal, damping)
        end
      end
def build_production_proxies ( grammar , damping ) @production_proxies = { } grammar . nonterminals . each do | nonterminal | @production_proxies [ nonterminal ] = DampenedProbabilityProductionChoiceProxy . new ( nonterminal , damping ) end end
Initializes the derivator.
Initializes the derivator .
grammar
damping