Example #1
0
        public void Mutate(Random random, EdgeParameters parameters)
        {
            _weight += parameters.Weight.GetChange(random);

            if (random.NextDouble() < (_isEnabled ? parameters.DisableRate : parameters.EnableRate))
            {
                _isEnabled = !_isEnabled;
            }
        }
 public RandomParameters(EdgeParameters edge, NodeParameters node)
 {
     Edge = edge;
     Node = node;
 }