예제 #1
0
 /// <summary>
 ///   Creates a new Simple Linear Regression of the form y = Ax + B.
 /// </summary>
 public SimpleLinearRegression()
 {
     this.regression = new MultipleLinearRegression(2);
 }
예제 #2
0
 /// <summary>
 ///   Creates a new Polynomial Linear Regression.
 /// </summary>
 /// <param name="degree">The degree of the polynomial used by the model.</param>
 public PolynomialRegression(int degree)
 {
     // degree plus the independent constant
     regression = new MultipleLinearRegression(degree + 1);
 }