cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Finding curve

VladimirN
24-Ruby II

Finding curve

I want to approximate the experimental data by a curve as shown below on screenshot. I tried to use inverse probability density for the normal distribution, but without success. Are there any ideas in this regard (which equation can describe the data or maybe I need to create several sections/parts of the curve)?

Initial data:

Pic_1.png

The approximating curve must have the following form:

Pic_3.png

Or this form:

Pic_2.png

ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:VladimirN)

Do you mean putting the Y data on a log10 scale?

View solution in original post

10 REPLIES 10
RichardJ
19-Tanzanite
(To:VladimirN)

Here's one possibility. The data has so much error you are unlikely to get a curve that looks like what you want though. The fitted parameters will be pretty much meaningless too.

Richard,

Thank you. Whether and there are any ideas how to correct your model on a case of transition to a decimal logarithm?

RichardJ
19-Tanzanite
(To:VladimirN)

Do you mean putting the Y data on a log10 scale?

Thanks!

Richard,

Could you please explain what technique you used to set the approximating function and selection of the coefficients/constants in the equation?

RichardJ
19-Tanzanite
(To:VladimirN)

I'm not sure what you mean. You started with dnorm, which has two parameters. One controls the shift along the x-axis (D1) and one controls the width (D2). It seemed clear to me that two more were needed to make the curve pass through the data: one to scale the y-axis and one to offset on the y-axis. So I added D3 and D4.

With the logarithmic y-scale I forced D2 to a positive value (using |D2|) because genfit was trying to make it negative, causing the fit to fail.

I chose the guess values by temporarily changing F(x):=f(x,D) to F(x):=f(x,guess) and adjusting the guess values until the curve roughly passed through the data. Then I changed it back.

Does that answer your question?

Ok. I see.

Does the term "shotgun pattern" apply?  😉

Absolutely .

Announcements

Top Tags