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_corr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_CORR()


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


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


Arguments:     <array1> and <array2> are the arrays to correlate.


Returns:       The correlation 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_CORR(arr1,arr2)          && Result: -0.20


Language:      C

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

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