void EvaluatePoints( int nCurveNum, Matrix mX, Matrix mY )
int nCurveNum
The number (1-based) of the curve you want to evaluate at a set of X values.
Matrix mX
A vector of X values.
Matrix mY
Upon return, contains the values obtained by evaluating curve number nCurveNum at the points of the vector mX.
This method evaluates curve number nCurveNum at the points contained in the vector mX.
x = { 1 2 3 4 5 6 7 8 }; y = { 2 1 4 5 6 5 6 9 }; declare ScatterPlot plot; plot = ScatterPlot.Create( "Sample Data", x, y ); plot.CreatePolyCurve( 1 ); plot.EvaluatePoints( 1, x, yhat ); residuals = y` - yhat; SSE = SSQ( residuals ); print SSE, residuals;