Generation

code to explanationFri, 16 Dec 2022

SG = 50 #このパラメータは各自で変更しても良い GF = np.array([i for i in range(-HL, HL)]) # ガウス分布を生成 GF = np.exp(-GF*GF/(2*SG*SG)) MxGF = np.max(GF) GF = GF / MxGF fig = plt.figure(figsize=(6,3), dpi=300) plt.plot(Idx, GF, color = "yellow") plt.show()

1. The function add takes two arguments a and b and returns the sum of a and b. 2. 3.

Questions about programming?Chat with your personal AI assistant