Alright all you "brainiacs" out there...
I need to find the geometric mean of a group of numbers in a data array (double). The geometric mean is multiplying all of the numbers together, then taking the nth root of that number, "n" being the total number of data elements. (Sort of like an average) Does anyone have any idea how to do this? I can easily find the average by looping through the elements in the array adding each one, then dividing by the count of data elements, but I don't know how to find the nth root using code. There is a GEOMEAN function in Excel that does what I want, but how do I use it in Access? Is there a reference that I can set? Any help would be much appreciated, thanks in advance.
I need to find the geometric mean of a group of numbers in a data array (double). The geometric mean is multiplying all of the numbers together, then taking the nth root of that number, "n" being the total number of data elements. (Sort of like an average) Does anyone have any idea how to do this? I can easily find the average by looping through the elements in the array adding each one, then dividing by the count of data elements, but I don't know how to find the nth root using code. There is a GEOMEAN function in Excel that does what I want, but how do I use it in Access? Is there a reference that I can set? Any help would be much appreciated, thanks in advance.