// copy constructor
 public GOCellBehavior(GOCellBehavior original)
 {
     CurrValue = original.CurrValue;
     goTerms = new List<GOTerm>();
     foreach (GOTerm oldGOTerm in goTerms)
     {
         GOTerm newGOTerm = new GOTerm(oldGOTerm);
         goTerms.Add(newGOTerm);
     }
 }
Beispiel #2
0
 // copy constructor
 public GOTerm(GOTerm original)
 {
     pValue = original.pValue;
     weight = original.weight;
     description = original.description;
 }
 public void recalculateValue(double oldWeight, GOTerm mutatedTerm)
 {
     CurrValue -= mutatedTerm.PValue * oldWeight;
     CurrValue += mutatedTerm.PValue * mutatedTerm.Weight;
 }