Linked Questions

1 vote
1 answer
2k views

How to fit multiple Gaussian peaks to data [duplicate]

How would I fit this data with Gaussian Peaks? I have tried various codes but none have even worked. Note: If I do Log[data], the peaks are more visible (I have tried the method from here but it got ...
minusatwelfth's user avatar
79 votes
5 answers
30k views

How to find all the local minima/maxima in a range

I want to find : all local maxima in range all local minima in range From those points I can interpolate and combine functions upper and lower boundary. What I am really interested in, is the mean ...
Margus's user avatar
  • 2,007
15 votes
1 answer
1k views

Fittting data with combination of an unknown number of Gaussians

I have data that I want to fit with a constant plus a combination of Gaussians, with their actual number being one parameter of the fit (besides the average and the variance of every one of them). ...
psmith's user avatar
  • 815
3 votes
3 answers
5k views

How to do deconvolution in spectrum with some peaks?

For example, I have the next spectrum: I've seen the next question ["How to perform a multi-peak fitting?"][2] but not answer to my question. I want deconvolution the spectrum to obtain three peaks (...
Manu's user avatar
  • 119
6 votes
3 answers
970 views

Multi-peak fitting for peak position

I have a {x,f} data-set featuring multiple peaks. The peaks evolve with a second variable y. I would like to fit the multiple ...
sole's user avatar
  • 81
5 votes
4 answers
428 views

Approximate strictly positive solution to a linear set of equations?

Consider a positive matrix M and a positive vector b, e.g. ...
Kagaratsch's user avatar
  • 12.1k
-1 votes
2 answers
3k views

How do I generate a table of data points from a function and add random noise? [duplicate]

I am trying to generate a table of data for the function: ...
user7891's user avatar
1 vote
3 answers
783 views

Defining a function as a sum of several Gaussians

I have a function that is a summation of several Gaussians. Working with a 1D Gaussian here, there are 3 variables for each Gaussian: A, ...
dr.blochwave's user avatar
  • 8,798
4 votes
1 answer
2k views

Solving Fredholm Equation of the first kind [duplicate]

I want to numerically solve Fredholm integral equations of the first kind, equations of the form $$g(t)=\int_a^b K(t,s)f(s)\,\mathrm{d}s$$ where we know the functions $K(t,s)$ and $g(t)$ and seek to ...
Gareth's user avatar
  • 261
3 votes
1 answer
2k views

Fitting a Multi-Exponential Decay With Constraints

I am having trouble finding a way to fit my data in Mathematica to a multi-exponential decay, with the critical condition that all contributions to the decay sum to 1. To start, I can fit my data to ...
user1202297's user avatar
1 vote
2 answers
212 views

TargetFunctions option in FindDistribution yields error

I have some data set that I am trying to find the maximums . I figured I could do this by fitting the many peaks of the dataset to Gaussian distributions and then finding the peaks of this data from ...
Daniel Schulze's user avatar
2 votes
1 answer
529 views

Multi-peak fitting and area of the fitting

I am trying to fit 3 peaks to the following data: https://pastebin.com/QCAKwZ2P which plotted using ListPlot[data, PlotRange -> {{50, 110}, {0.1, All}}] gives: ...
John's user avatar
  • 1,651
0 votes
1 answer
479 views

How to do a fit on multiple peak with a voigt function

I looked a lot on the other questions to do that but I can't find a way to do it properly. So here is my question. I have a spectrum of OH and I would like to do a voigt fit on every peak it has to be ...
Francis Labelle's user avatar
1 vote
2 answers
600 views

Curve fitting with variable number of Gaussian curve

I have the data which appears like And I decided to use three Gaussian curves to fit it. (This code allows me to manipulate all three curves and put in best guesses for peak positions. Using these ...
chika's user avatar
  • 201
1 vote
2 answers
194 views

FindFit problem, some models work -- and some do not

I asked this question. Answers and comments were appreciated. But (some) of the comments did not make satisfied. [Maybe due to my bad English I did not describe my problem very well]. Let me try ...
Hussain-Alqatari's user avatar

15 30 50 per page