Example #1
0
 public void RemoveInputCell(gennCell cell)
 {
     this.outputCells.Remove(cell);
     this.inputWeight.Remove(cell);
     this.deltaWeight.Remove(cell);
     this.backError.Remove(cell);
 }
Example #2
0
 public void AddInputCell(gennCell cell, float weight = 0f)
 {
     this.inputCells.Add(cell);
     if (weight - 0f < 0.001f)
     {
         this.inputWeight.Add(cell, (float)this.randomGenerator.NextDouble());
     }
     else
     {
         this.inputWeight.Add(cell, weight);
     }
     this.deltaWeight.Add(cell, default(float));
     this.backError.Add(cell, default(float));
 }
Example #3
0
        public int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }
            gennCell cell = obj as gennCell;

            if (cell != null)
            {
                return(this.GetID().CompareTo(cell.GetID()));
            }
            else
            {
                return(1);
            }
        }
Example #4
0
 public void AddFlowTo(gennCell cell, float weight = 0f)
 {
     this.outputCells.Add(cell);
     cell.AddInputCell(this, weight);
 }
Example #5
0
 public void RemoveOutputCell(gennCell cell)
 {
     this.outputCells.Remove(cell);
 }
Example #6
0
 public void AddOutputCell(gennCell cell)
 {
     this.outputCells.Add(cell);
 }