07. 最大化高斯分布

最大化高斯分布

Question:

Start Quiz:

#For this problem, you aren't writing any code.
#Instead, please just change the last argument 
#in f() to maximize the output.

from math import *

def f(mu, sigma2, x):
    return 1/sqrt(2.*pi*sigma2) * exp(-.5*(x-mu)**2 / sigma2)

print f(10.,4.,8.) #Change the 8. to something else!
Solution: