23 lines
519 B
Python
23 lines
519 B
Python
def _foo(*_):
|
|
print("foo.py")
|
|
return 0
|
|
|
|
def _bar(*args):
|
|
for arg in args:
|
|
print(arg)
|
|
|
|
return 0
|
|
|
|
def _complicated_function(*args):
|
|
mean, stdv, *_ = args
|
|
mean, stdv = int(mean), int(stdv)
|
|
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
from scipy.stats import norm
|
|
x_min = norm.ppf(0.005, loc=mean, scale=stdv)
|
|
x_max = norm.ppf(0.995, loc=mean, scale=stdv)
|
|
x = np.linspace(x_min, x_max, 1000)
|
|
plt.plot(x, norm.pdf(x, mean, stdv))
|
|
plt.show()
|
|
return 0
|