Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
from __future__ import division
|
||||
import matplotlib.pyplot as plt
|
||||
import random
|
||||
|
||||
mean, stddev, size = 50, 4, 100000
|
||||
data = [random.gauss(mean, stddev) for c in range(size)]
|
||||
|
||||
mn = sum(data) / size
|
||||
sd = (sum(x*x for x in data) / size
|
||||
- (sum(data) / size) ** 2) ** 0.5
|
||||
|
||||
print("Sample mean = %g; Stddev = %g; max = %g; min = %g for %i values"
|
||||
% (mn, sd, max(data), min(data), size))
|
||||
|
||||
plt.hist(data,bins=50)
|
||||
Loading…
Add table
Add a link
Reference in a new issue