| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > GetCoefficients Method SharpPlot.GetCoefficients MethodCoefficients from regression model. public double[] GetCoefficients(); Exampledouble[] coeff = sp.GetCoefficients(); double intercept = coeff[0]; double slope = coeff[1]; These are returned in order of increasing power, so for a linear model the returned array will have 2 elements giving intercept and slope. They could be used to compute Y-values for a specific set of ‘benchmark’ X-values and draw some guidelines on the chart or just to add a note describing the model. See also ... |