Or login with:
| template<class T> doublegeometric( | int | n | |
| T* | data | ) |
#include <codecogs/statistics/moments/geometric.h> #include <iostream> #include<math.h> int main() { int x[5] = {4 , 6 , 1 , 3 , 7}; double geom = Stats::Moments::geometric(5, x); std::cout << "The population mean is: " << geom << std::endl; return 0; }Output:
The population mean is: 3.47125| n | the size of the population |
| data | the actual population data given as an array |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge