
BestFitCoeffs
Purpose This readonly property provides the best fit coefficients when PlottingMethod is set to PEGPM_POINTSPLUSBFL or PEGPM_POINTSPLUSBFC. The degree of the coefficients are also controlled by BestFitDegree or SubsetDegree.
IMPORTANT, you can only retrieve these coefficients after the object's image has been constructed by calling PEresetimage, or via PEactions = 0.
This property array is structured to provide up to 14 subsets worth of coefficients.
This property is retrieved with PEvgetcell, the index can be 0  139 where 09 are coefficients for first subset, 1019 are coefficients for second subset, 2029 are coefficients for third subset and so on.
There are 10 possible coefficients which gives room for expansion. You will only use the first 2,3, 4 or 5 coefficients depending on PlottingMethod and BestFitDegree.
If you are generating a Best Fit Line, then only the first two coefficients are used. The equation for the best fit line will be y = coeff1*x + coeff2
If you are generating a Best Fit Curve of 2nd order, then the equation will be Y = coeff1*x*x + coeff2*x + coeff3
If you are generating a Best Fit Curve of 3rd order, then the equation will be Y = coeff1*x*x*x + coeff2*x*x + coeff3*x + coeff4
If you are generating a Best Fit Curve of 4th order, then the equation will be Y = coeff1*x*x*x*x + coeff2*x*x*x + coeff3*x*x + coeff4*x + coeff5
Comments PePlot.Option.BestFitCoeffs members of Pego.PePlot.Option, Pesgo.PePlot.Option
See Also: BestFitFix
See example 009 within demo example code.
For example, if BestFitDegree is set for 2nd order and you have two subsets.

©2022 Gigasoft, Inc.  All rights reserved.
Gigasoft is a registered trademark, and ProEssentials a trademark of Gigasoft, Inc. 