fork download
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. # Gauss Fonksiyonu
  5. def gaussian(x, A, mu, sigma):
  6. return A * np.exp(-((x - mu) ** 2) / (2 * sigma ** 2))
  7.  
  8. # Basit Veri
  9. x = np.linspace(2.0, 3.0, 100)
  10. y = gaussian(x, 1, 2.5, 0.2)
  11.  
  12. # Grafik
  13. plt.plot(x, y, label='Gaussian')
  14. plt.xlabel('x')
  15. plt.ylabel('y')
  16. plt.legend()
  17. plt.show()
  18. # your code goes here
Success #stdin #stdout 0.64s 54992KB
stdin
Standard input is empty
stdout
Standard output is empty