Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_covar()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_COVAR()


Syntax:        L_COVAR(<array1>,<array2>)


Purpose:       Calculates the covariance of sample pairs (arrays).


Arguments:     <array1> and <array2> are the arrays on which to
               calculate the covariance.


Returns:       The covariance of the two arrays as a number.


Examples:      DECLARE arr1[6]
               DECLARE arr2[6]

               arr1[1] = 200
               arr1[2] = 5000
               arr1[3] = 50
               arr1[4] = 1000
               arr1[5] = 30
               arr1[6] = 2500

               arr2[1] = 210
               arr2[2] = 50

               arr2[3] = 67
               arr2[4] = 5100
               arr2[5] = 1500
               arr2[6] = 900

               ? L_COVAR(arr1,arr2)          && Result: -752632.00


Language:      C

See Also: L_CV() L_CORR() L_VAR() L_STDDEV()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson