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...

+ Reply to Thread
Results 1 to 3 of 3

Fit on subdomain

  1. Default 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


  2. Default 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/>

  3. Default 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)

+ Reply to Thread

Similar Threads

  1. How to create a SubDomain
    By Application Development in forum DOTNET
    Replies: 12
    Last Post: 11-12-2007, 11:36 AM
  2. Replies: 0
    Last Post: 10-24-2007, 10:06 AM
  3. Subdomain creation
    By Application Development in forum CSharp
    Replies: 1
    Last Post: 08-17-2007, 10:32 AM
  4. I need a subdomain service like kickme.to
    By Application Development in forum Perl
    Replies: 1
    Last Post: 05-31-2007, 02:07 AM
  5. How to connect to DB in another subdomain
    By Application Development in forum Inetserver
    Replies: 3
    Last Post: 04-12-2007, 06:07 AM