How to generate random data having multiple peaks using numpy or scipy?

Viewed 233

I am working on fitting curves in x-ray diffraction plot. I need to generate random data to test my program. The features of the random data should be:

  • That it should have multiple peaks.
  • The peak heights should be variable.
  • Should have some noise.

I am linking to a photo showing what kind of plot I need:

Plot

Any help is greatly appreciated. Thank you.

0 Answers
Related