Morten Huse wrote:
> Is there a way to set up restrictions for the variables used when fitting a
> function to a data set?
You have to transform a full-range fit parameter into a number that
obeys the range requirement, e.g.
> f(x)=a*x+b
> fit f(x) 'example.txt' u 2:1 via a,b
>
> but variable b must be between 1 and 10 for example
could be rewritten as
limit(x,lower,upper)=lower+(upper-lower)/pi*atan(x)
f(x)= a*x+limit(b,1,10)
|