Fit on subdomain - Graphics
This is a discussion on Fit on subdomain - Graphics ; is it possible to use the <fit> command in gnuplot, asking for it to
find values just on a subdomain?
E.G. I need to fit f(x)=atan(10-a*x) to my data, but I ask that a>0
Thanks for any help!
Alessandro Magni...
-
Fit on subdomain
is it possible to use the <fit> command in gnuplot, asking for it to
find values just on a subdomain?
E.G. I need to fit f(x)=atan(10-a*x) to my data, but I ask that a>0
Thanks for any help!
Alessandro Magni
-
Re: Fit on subdomain
On Tue, 13 Nov 2007, alexxx.magni@gmail.com wrote:
> is it possible to use the <fit> command in gnuplot, asking for it to
> find values just on a subdomain?
> E.G. I need to fit f(x)=atan(10-a*x) to my data, but I ask that a>0
Unless you really need to preserve the shape of the chi-squared
function, you could try:
f(x) = atan(10.0-b**2.0*x)
b = someinitialguess
fit f(x) "data.dat" using (somecolumn)
someothercolumn) via b
a = b**2.0
--
HTH,
Dan Hatton
<http://www.bib.hatton.btinternet.co.uk/dan/>
-
Re: Fit on subdomain
alexxx.magni@gmail.com wrote:
> is it possible to use the <fit> command in gnuplot, asking for it to
> find values just on a subdomain?
> E.G. I need to fit f(x)=atan(10-a*x) to my data, but I ask that a>0
The usual technique is to make the restricted parameter a function of
the real, fitted parameter, e.g.
fit atan(10-exp(a)*x) 'data' via a
print 'actual result is ', exp(a)
Similar Threads
-
By Application Development in forum DOTNET
Replies: 12
Last Post: 11-12-2007, 11:36 AM
-
By Application Development in forum SendMail
Replies: 0
Last Post: 10-24-2007, 10:06 AM
-
By Application Development in forum CSharp
Replies: 1
Last Post: 08-17-2007, 10:32 AM
-
By Application Development in forum Perl
Replies: 1
Last Post: 05-31-2007, 02:07 AM
-
By Application Development in forum Inetserver
Replies: 3
Last Post: 04-12-2007, 06:07 AM