The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_math2
Class: TCurveFit
Declaration: function EnterStatValue (x,y: double): integer;

The function EnterStatValue is used to enter data points (defined by the parameters x and y) for later statistical evaluation. The function returns the number of data points entered since the last call to Init.

A maximum of approx. 2 billion data pairs can be stored; a larger number of calls to EnterStatValue results in a corrupted calculation of the statistical parameters. However, the maximum number of data points may be restricted by the available memory (each data point requires 16 bytes of storage space).

Example: This method is used in the following example program (see for downloading the code): curvefit, multilinreg, spline

Last Update: 2016-Aug-02