Skip to content

Instantly share code, notes, and snippets.

@aita
Created June 30, 2013 13:14
Show Gist options
  • Save aita/5895106 to your computer and use it in GitHub Desktop.
Save aita/5895106 to your computer and use it in GitHub Desktop.
算術平均と幾何平均
import numpy as np
from scipy.stats import gmean
d1 = [2,4,5,7]
d2 = [2,4,5,70]
print np.average(d1), np.average(d2)
print gmean(d1), gmean(d2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment