/// <summary> /// Creates new positon neuron /// </summary> /// <param name="coordinate"> /// Neuron Position /// </param> /// <param name="parent"> /// Parent neuron containing this neuron /// </param> /// <value> /// If <c>parent</c> is <c>null</c> /// </value> public PositionNeuron(System.Drawing.Point coordinate, KohonenLayer parent) { Helper.ValidateNotNull(parent, "parent"); this.coordinate = coordinate; this.parent = parent; this.value = 0d; }
/// <summary> /// Creates a new Kohonen SOM, with the specified input and output layers. (You are required /// to connect all layers using appropriate synapses, before using the constructor. Any changes /// made to the structure of the network here-after, may lead to complete malfunctioning of the /// network) /// </summary> /// <param name="inputLayer"> /// The input layer /// </param> /// <param name="outputLayer"> /// The output layer /// </param> /// <exception cref="ArgumentNullException"> /// If <c>inputLayer</c> or <c>outputLayer</c> is <c>null</c> /// </exception> public KohonenNetwork(ILayer inputLayer, KohonenLayer outputLayer) : base(inputLayer, outputLayer, TrainingMethod.Unsupervised) { }
/// <summary> /// Creates new position neuron /// </summary> /// <param name="x"> /// X-Coordinate of the neuron positon /// </param> /// <param name="y"> /// Y-Coordinate of the neuron position /// </param> /// <param name="parent"> /// Parent layer containing this neuron /// </param> /// <exception cref="ArgumentNullException"> /// If <c>parent</c> is <c>null</c> /// </exception> public PositionNeuron(int x, int y, KohonenLayer parent) : this(new System.Drawing.Point(x, y), parent) { }