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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 NLSF
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

pegor

Germany
Posts

Posted - 06/16/2005 :  12:00:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 SR4
Operating System: win xp

Hi all,
when i fit a curve with NLSF and i want to paste the parameters back in a worksheet, and lets say that my first parameter in the fitting function is "A", i write:
A=NLSF.P1;
and then i put A in the worksheet.
does anybody know how can i do the same for the chi^2/DoF ?
i tried:
chi=NLSF.Chi2^2/DoF;
but this didnt work.

Thanks in advance
Pegor

Mike Buess

USA
3037 Posts

Posted - 06/16/2005 :  12:08:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
chi=NLSF.chisqr;

Mike Buess
Origin WebRing Member
Go to Top of Page

easwar

USA
1965 Posts

Posted - 06/16/2005 :  2:30:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

when i fit a curve with NLSF and i want to paste the parameters back in a worksheet,


Hi Pegor,

If you are just interested in getting all fitting results into a worksheet, you can use the NLSF tool itself to do this - just go to the Action->Results menu of the NLSF tool and click on the Parameters button. That will generate a worksheet with all the information relevant to the fit. You must first fit and make sure the fitting has converged etc using the Fit page of the tool and then go to this results page and click this button.

Easwar
OriginLab

P.S. You can programmatically create such a worksheet using the paramkWks() method of the nlsf object - look under the documentation for nlsf object in the LabTalk language reference file.



Edited by - easwar on 06/16/2005 2:59:15 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000