In [43]:
import numpy as np
import noisegenerator as ng
import matplotlib.pyplot as plt
#position peaks

xmin =-20
xmax =20
p = np.random.uniform(xmin,xmax,size=2)
p1=p[0]
p2= p[1]
x = np.linspace(xmin,xmax,2000)
x2 = 2000*np.exp(- (x-p1)**2) + 2000*np.exp(- (x-p2)**2)
y = ng.noisegen(x2,2,500)
print(y[200])



plt.plot(x,y)
plt.show()


812.541852658

In [ ]:


In [ ]:


In [ ]: