コード例 #1
0
        public LeastSqureError(LeastSqureError father)
        {
            _expression = father._expression.DeepCopy();

            _timeSerials = father._timeSerials;
            _timeSpan = father._timeSpan;
        }
コード例 #2
0
        public void CrossOver(LeastSqureError 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;
            }
        }