The procedure CalcHyperbolFit calculates the best fitting hyperbola for a given set of data. The hyperbola is determined by the equation
The values of x and y are given by the data samples, the parameters k0, and k1 are estimated by CalcHyperbolFit using a least squares approximation.
The data points [x,y] have to be entered using the routine EnterStatValue. A minimum number of 3 values is required in order to apply CalcHyperbolFit. Do not forget to reset the statistics calculation before entering any new data sets (use Init)
In addition to the parameters k0 and k1 CalcHyperbolFit returns the goodness of fit in the parameter FitQual. This quality of fit may vary between 0.0 and 1.0, indicating the best possible fit if FitQual equals 1.0.