Class | Ai4r::Som::Som |
In: |
lib/ai4r/som/som.rb
|
Parent: | Object |
This is an implementation of a Kohonen Self-Organizing Maps
Author: | Thomas Kern |
License: | MPL 1.1 |
Url: | ai4r.rubyforge.org |
finds the best matching unit (bmu) of a certain input in all the @nodes returns an array of length 2 => [node, distance] (distance is of eucledian type, not a neighborhood distance)
main method for the som. trains the map with the passed data vector calls train_step as long as train_step returns false