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 for Programming
 Forum for Origin C
 nlsf with shared parameters

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
basarir Posted - 01/30/2007 : 11:54:39 PM
Origin Version (Select Help-->About Origin):7 SR4
Operating System: Windows XP

Dear all,

Is there a way to fit two datasets to two different functions with shared parameters using the nlsf?

My functions are:

phi_real = (f_0^2-f^2)/ sqrt( (f_0^2-f^2)^2 + (f*f_0/Q)^2 )
phi_imag = -f*f_0 /Q / sqrt( (f_0^2-f^2)^2 + (f*f_0/Q)^2 )

where f is the same array for both of the datasets and phi_real and phi_imag are the dependent variables. f_0 and Q are the shared parameters. I can fit my data to each of these functions using NLSF independently but can I run NLSF simultaneously for both, such that I get one f_0 and one Q which are the best minimizations for both of the functions ?

Thank you,

Onur
2   L A T E S T    R E P L I E S    (Newest First)
basarir Posted - 02/01/2007 : 09:18:45 AM
Hello Zachary,

It worked!

Thank you,

Onur
zachary_origin Posted - 01/31/2007 : 03:09:42 AM
You can define a function with phi_real, phi_image as Dependent Var and f, f_0,Q as Independent Var.

Then to do the fitting, select Action: Dataset to set the datasets for phi_real and phi_image properly.

Zachary
OriginLab Technical Services.


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