Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter estimation using fn involving root

Status
Not open for further replies.

pepdave

Agricultural
Joined
Apr 22, 2009
Messages
3
Location
AU
I have two equations for the same dependent variable, Y1 and Y2 say. Y1 depends on x say and needs a S value that satisfies both equations,

Y1(x,S) and Y2(S) but Y1 = Y2 at a particular value of S.
Y1(x,S)-Y2(S) = 0 when S is the correct value.

I use the root(Y1-Y2,S) method to find an appropriate value of S. That part is ok. I then feed that S value back into the equation for Y2(S) to evaluate Y2.

I now have observations (y data) to which I can fit the equations to. Y1(x,S) has one parameter u0 and Y2(s) has one parameter u1, say. I wish to estimate these two parameters to obtain the best fit to the data.

The function I would like to fit looks like,

Y2(root(Y1-Y2,S)) where Y1 and Y2 are expressed in terms of their x, S and u.

I don't think the genfit() method works on this function with a root. Perhaps there is another way?

Any tips will be greatly appreciated.

Dave

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top