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
 fitting a function consisting of two components

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
hydrix Posted - 04/10/2007 : 11:41:39 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP
hi everyone,
iŽd like to fit the function
y=((P2*P4+P1*P3)*x-0.5*(P2+P1)*x^2)+554.27, if x<P3
y=((P2*P4)*x-0.5*P2*x^2+0.5*P1*P3^2)+554.27, if P4>x>P3
to a set of data points.
can anyone tell me if this is possible and how this works?
thank you for help
1   L A T E S T    R E P L I E S    (Newest First)
zachary_origin Posted - 04/10/2007 : 9:29:37 PM
you need create a user-defined fitting function (if you are not familiar, seethis for help).

As for your function, it will be defined as something like (make sure the checkbox Use OriginC is checked):

if(x<P3)
y=...;
else if (P3<x && x<P4)
y=...;
else
y=...;



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