| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Style examples > Force Modelfit through zero Force Modelfit through zeroThe fitted model is forced to have zero intercept on both axes. sp.SetOrderOfFit(2,2); sp.EquationStyle = EquationStyles.Middle|EquationStyles.Below|EquationStyles.ForceOrigin; sp.EquationFormat = "y = C0 + C1x + C2x²"; If the order of fit is 1, this corresponds to the LNT (Linear No Threshold) model which is used by default when there is insufficient information to support a more realistic scenario. Note that the zeroth term in the equation formatter is eliminated for you.. See also ...EquationFormat Property | SetOrderOfFit Method |