The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 (Non-linear curve made with two peaks , one is Gauss. And another is logNormal

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
najm1 Posted - 05/05/2000 : 8:03:00 PM
I work on Origine 5.0 to calculate the histogram of 200 values diameters of the
particles of gold on alumina, I managed to make this histogram but I need also to do
it (Non-linear curve made with two peaks , one is Gauss. And another is logNormal).
Do you know this operation? Can you help me?

Je travaille sur Origine 5.0 pour calculer l’histogramme de 200 valeurs de diamètres
des particules de l’or sur alumine, je suis arrivé à faire cette histogramme mais je
besoin aussi de faire le ( Non-linear curve fit with two peaks un est Gauss. Et l’autre
est logNormal ) . Connaissez-vous cette opération ? Pouvez vous m’aider ?

*******contained in one dataset (one column in a worksheet)*******

my E mail is najm1@caramail.com
thank you.

1   L A T E S T    R E P L I E S    (Newest First)
rtoomey Posted - 05/08/2000 : 2:14:00 PM

najm1,

In order to perform a nonlinear curve fit on one dataset which contains a Gaussian peak and a LogNormal peak, define a new fitting function which contains a Gaussian term and a LogNormal term. To speed up the fitting process and reduce the amount of typing you need to do, define the Gaussian and LogNormal terms using Origin's built-in multi-parameter function notation as shown below:

y = Gauss(x,y0,xc,w,A) + LogNormal(x,y0,xc_2,w_2,A_2)

Note: y is the dependent variable (the Y dataset containing the two peaks), x is the independent variable (the X dataset), and y0 is the baseline (assumed to be the same for both peaks). Furthermore, the notation above can be seen in the Built-in Function Reference in the Origin 5.0 LabTalk manual.

To properly define this function in the nonlinear curve fitter, first edit the LogNormal function so that the parameter names it uses are the same as the parameter names above. To do that, follow these steps:


  1. Select Analysis => Nonlinear Curve Fit.
  2. Click the More button to proceed to the advanced mode of the fitter. If the More button is not visible you are already in the advanced mode.
  3. Select Function => Select from the fitter menus.
  4. Select Peak Functions from the Categories list and then LogNormalfrom the Functions list.
  5. Select Function => Edit from the fitter menus.
  6. Add _2 to xc, w, and A in the Parameters list and the Description text box.
  7. Click the Save button, but do not close the nonlinear curve fitter.

Once the LogNormal function has been edited, define a new function as shown above. To do so, follow the steps below:

  1. Select Function => New. This will create a new user-defined function definition file (*.FDF) in the FitFunc folder of your Origin installation and will list it in the Peak Functions category (since this was the last category selected).
  2. Enter a name for the new, user-defined function in the Function Name text box. This step is optional. If you choose to leave it as is, please note the name in the event that you have similar data in the future.
  3. Enable the use of user-defined parameter names by checking the User Defined Param. Names check box.
  4. Enter the following list of parameters (exactly as you see it here) in the Parameter Names text box:

    y0,xc,w,A,xc_2,w_2,A_2

  5. Enter the fitting function into the Definition text box. If you forgot what the fitting function is supposed to look like, here it is:

    y = Gauss(x,y0,xc,w,A) + LogNormal(x,y0,xc_2,w_2,A_2)

  6. Select the appropriate form from the Form drop-down list. I have found the Y-Script works, but it may only be necessary to set it to Equations.
  7. Click the Save button, but do not close the nonlinear curve fitter.

After defining the new function assign the datasets to be fitted, initialize the parameters, and perform some iterations. To do so, follow the steps below:


  1. Select Action => Dataset from the fitter menus.
  2. Select the line that reads "Y     Dep     ???     (1...0" in the top window.
  3. Select the Y dataset to be fitted from the Available Datasets list.
  4. Click the Assign button to assign the Y dataset to the dependent variable, y.
  5. Do the same for the X dataset if necessary by selecting the line that reads "X     Indep     ???     (1...0)" and following steps 16-17.
  6. Select Action => Fit from the fitter menus.
  7. Enter initial values into the corresponding text boxes for each of the 7 parameters. Note: You may have to use the scroll bar to initialize all 7 parameters.
  8. Click the Chi-Sqr button.
  9. - If you do not see a value for Chi-sqr in the window (i.e. it lists "--" as the value), the fit is not working properly. Select Function => Edit from the fitter menus and follow through steps 10-14 again to make sure there are no errors in the definition of your function.
    - If you do see a value for Chi-sqr, the fit is fine. Click
    the 10 Iter. button until the fit looks good.
  10. Click the Done button when you are satisfied with the appearance of the fit curve.

This completes the entire fitting operation. Please note that the fitting function I have had you define will be available whenever you have similar data by selecting Analysis => Nonlinear Curve Fit, proceeding to the advanced mode (see step 2), selecting the Peak Functions category (see step 4), and then selecting the name of the function entered in step 9 (see step 4).


I hope that this information proves helpful!

Sincerely,
Ryan Toomey



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000