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
 Code for fitting multiple datasets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 05/23/2005 :  2:05:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5 Sr5
Operating System: Win 2000

Hi,

I'm writing an app to fit upto 15 dose response datasets to the four parameter logistic with the option of sharing a parameter (curve top).

I'd appreciate help with a few questions, thanks.

i) What is the limit on the number of datasets and parameters you can use?

ii) How best to set up constraints for each parameter. 2 scenarios could be the midpoint for all datasets has the same constraints or they are all potentially different.

iii) I really like LabTalk's substitution eg
loop(NumSet,1,15) {
nlsf.fitdata$(NumSet)=Data_Resp$(NumSet);
}

V short!

Can this be done in a similar way with C or do I spell them all out?
In this case the user will want to select any number from 1-15 sets.

Cheers,

pete


peter.cook

UK
356 Posts

Posted - 05/24/2005 :  08:30:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I forgot code I've already been using eg
using that provided by Scott for multiple linear fits as in
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3879
eg
	for(int ii = 1; ii <= nPlots; ii++)
{
nlsf.FitData$(ii)$ = vecYNames[ii - 1];
}


I guess my question should have been : Is this form substitution limited to LabTalk objects?

Cheers,

Pete

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