public static int RegressionDepth(this EquationNode node)
        {
            var regressionCandidates = new List <int> {
                0
            };

            if (node.IsK1Enabled)
            {
                regressionCandidates.Add(1);
            }
            if (node.IsK2Enabled)
            {
                regressionCandidates.Add(2);
            }
            if (node.IsK3Enabled)
            {
                regressionCandidates.Add(3);
            }
            return(regressionCandidates.Max());
        }
Exemple #2
0
 public AddNode(EquationNode lhs = null, EquationNode rhs = null)
 {
     this.Lhs = lhs;
     this.Rhs = rhs;
 }