first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import scipy.stats as stats
|
||||
import math
|
||||
|
||||
http_mu = 4.2
|
||||
http_std = 28.99
|
||||
|
||||
nginx_mu = 160.88
|
||||
nginx_std = 234.39
|
||||
|
||||
|
||||
def draw_normal(mu, std):
|
||||
|
||||
mu = 0
|
||||
sigma = std
|
||||
x = np.linspace(mu - 3*sigma, mu + 3*sigma, 100)
|
||||
plt.plot(x, stats.norm.pdf(x, mu, sigma))
|
||||
|
||||
draw_normal(http_mu, http_std)
|
||||
draw_normal(nginx_mu, nginx_std)
|
||||
|
||||
plt.savefig('foo.png')
|
||||
#plt.show()
|
||||
@@ -0,0 +1,11 @@
|
||||
worker_processes 1;
|
||||
|
||||
http {
|
||||
server {
|
||||
listen 8000;
|
||||
location / {
|
||||
add_header Content-Type text/plain;
|
||||
return 200 'Hello, World!';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user