# File lib/ai4r/som/node.rb, line 42 def self.create(id, total, dimensions) n = Node.new n.id = id n.instantiate_weight dimensions n.x = id % total n.y = (id / total.to_f).to_i n end