powered by
create a simulated spectra with gaussian shape
simG(vlen, i.start, gheight, shift = 0, wd = 30)
desired length of the spectra
starting value for the peak
height value
shift from 0
width of the gaussian curve
# NOT RUN { y=(simG(500,35,1,0,w=20)) plot(y) # }
Run the code above in your browser using DataLab