3 ms·
Python with numpy has a pretty concise solution np.exp(np.mean(np.log(a[a>0])))
by im3w1l 9y ago
Python with numpy has a pretty concise solution
np.exp(np.mean(np.log(a[a>0])))
- wvlia5 9y agoThat's what the J sample is doing (minus the filtering)