RegressionResult Class
A polynomial fitted by least squares: y = c0 + c1 x + c2 x² + ...
public sealed class RegressionResultProperties
| Name | Description |
|---|---|
| Coefficients | Gets the coefficients, from the constant term to the term of the highest degree. |
| Degree | Gets the degree of the polynomial. |
| RSquared | Gets the coefficient of determination: the share of the variance of y that the fit explains, from 0 to 1. |
Coefficients
RegressionResult.csGets the coefficients, from the constant term to the term of the highest degree.
public IReadOnlyList<double> Coefficients { get; }Property value
Degree
RegressionResult.csRSquared
RegressionResult.csMethods
| Name | Description |
|---|---|
| Evaluate(double) | Evaluates the polynomial. |
| ToString() | Returns the equation, such as y = 1.5x + 2 (R² = 0.98). |