Calculate Geometric MEAN

Hello!I want to create a program in c++ which could calculate geometric mean for grouped data and ungrouped data.If any one know how to calculate Geometric mean please help me.
Thanks
 
Last edited on
@atrium

pfff ahahhahahhh :D

@OP
well you take the n-th root of all abservations.
no metter group or not.

If you want weighted geometric mean of more groups you adopt weghted mean similar to wighted arithmetic mean of n random variables.
Topic archived. No new replies allowed.