Decision Tree (Linq) Expression Creator.
Exemple #1
0
        /// <summary>
        ///   Creates an <see cref="Expression">Expression Tree</see> representation
        ///   of this decision tree, which can in turn be compiled into code.
        /// </summary>
        ///
        /// <returns>A tree in the form of an expression tree.</returns>
        ///
        public Expression <Func <double[], int> > ToExpression()
        {
            DecisionTreeExpressionCreator compiler = new DecisionTreeExpressionCreator(this);

            return(compiler.Create());
        }
Exemple #2
0
 /// <summary>
 ///   Creates an <see cref="Expression">Expression Tree</see> representation
 ///   of this decision tree, which can in turn be compiled into code.
 /// </summary>
 /// 
 /// <returns>A tree in the form of an expression tree.</returns>
 /// 
 public Expression<Func<double[], int>> ToExpression()
 {
     DecisionTreeExpressionCreator compiler = new DecisionTreeExpressionCreator(this);
     return compiler.Create();
 }