/// <summary>
 /// Construct a weight mutation operator.
 /// </summary>
 /// <param name="theLinkSelection">The method used to choose the links for mutation.</param>
 /// <param name="theWeightMutation">The method used to actually mutate the weights.</param>
 public NEATMutateWeights(ISelectLinks theLinkSelection,
         IMutateLinkWeight theWeightMutation)
 {
     _linkSelection = theLinkSelection;
     _weightMutation = theWeightMutation;
 }
Esempio n. 2
0
 /// <summary>
 /// Construct a weight mutation operator.
 /// </summary>
 /// <param name="theLinkSelection">The method used to choose the links for mutation.</param>
 /// <param name="theWeightMutation">The method used to actually mutate the weights.</param>
 public NEATMutateWeights(ISelectLinks theLinkSelection,
                          IMutateLinkWeight theWeightMutation)
 {
     _linkSelection  = theLinkSelection;
     _weightMutation = theWeightMutation;
 }