Beispiel #1
0
        /// <summary>
        /// Creates a new distal segment for this Cell.
        /// </summary>
        /// <param name="cellsToConnect"> A set of available cells to add to
        /// the segmentUpdateList.</param>
        /// <returns> Created segmentUpdateList</returns>
        /// <remarks>
        /// The new segment will initially connect to at most newNumberSynapses
        /// synapses randomly selected from the set of cells that
        /// were in the learning state at t-1 (specified by the learningCells parameter).
        /// </remarks>
        internal DistalSegment CreateDistalSegment(List <Cell> cellsToConnect)
        {
            var newDistalSegment = new DistalSegment(this);

            foreach (var cell in cellsToConnect)
            {
                newDistalSegment.CreateSynapse(cell, Synapse.InitialPermanence);
            }

            this.DistalSegments.Add(newDistalSegment);
            return(newDistalSegment);
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new distal segment for this Cell.
        /// </summary>
        /// <param name="cellsToConnect"> A set of available cells to add to 
        /// the segmentUpdateList.</param>
        /// <returns> Created segmentUpdateList</returns>
        /// <remarks>
        /// The new segment will initially connect to at most newNumberSynapses 
        /// synapses randomly selected from the set of cells that
        /// were in the learning state at t-1 (specified by the learningCells parameter).
        /// </remarks>
        internal DistalSegment CreateDistalSegment(List<Cell> cellsToConnect)
        {
            var newDistalSegment = new DistalSegment( this );

            foreach (var cell in cellsToConnect)
            {
                newDistalSegment.CreateSynapse(cell, Synapse.InitialPermanence);
            }

            this.DistalSegments.Add(newDistalSegment);
            return newDistalSegment;
        }