public Chromosome(Chromosome father) { _variance = father._variance.DeepCopy(); _drift = father._drift.DeepCopy(); _timeSerials = father._timeSerials; _timeSpan = father._timeSpan; }
public void CrossOver(Chromosome siblings) { TreeNodeBase self = GetExpression(); TreeNodeBase other = siblings.GetExpression(); TreeNodeBase selfsub = self.FindSubTree(); TreeNodeBase othersub = other.FindSubTree(); if (selfsub != null && othersub != null) { var temp = selfsub; selfsub = othersub; othersub = temp; } }