# File lib/ai4r/som/node.rb, line 53 def instantiate_weight(dimensions) @weights = Array.new dimensions @instantiated_weight = Array.new dimensions @weights.each_with_index do |weight, index| @weights[index] = rand @instantiated_weight[index] = @weights[index] end end