|
|
|
|
The following code is used to calculate the variance of the elements in row 3 of a matrix. The value of the elements in this row represents the entire population. We assume that the matrix is already created and initialized. // -- Click code on BTN_VarianceP // Declare the variables ResVarianceP is real // Variance of elements in row 3 ResVarianceP = StatVarianceP("MyMatrix", 3, False) // Error while calculating the variance? IF StatError = 0 THEN // Display the variance Info("The variance is: " + ResVarianceP) ELSE // Display the error message Error(ErrorInfo(errMessage)) END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|