geometrical mean python

Solutions on MaxInterview for geometrical mean python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "geometrical mean python"
Camila
19 Feb 2018
1import numpy as np
2
3def geo_mean(iterable):
4    a = np.array(iterable)
5    return a.prod()**(1.0/len(a))