MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Fit with constraints?

  • To: mathgroup at
  • Subject: [mg23322] Re: [mg23316] Re: Fit with constraints?
  • From: David Withoff <withoff at>
  • Date: Tue, 2 May 2000 00:43:05 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Martin Rommel <Martin_Rommel at> wrote in message
news:8eg5ee$giq at
> It seems the Fit function lacks the option to fix a point (like "set
> intercept" in Excel).
> How is that best done?
> Martin

Fixing a point or setting an intercept just means using a model
that always passes through a particular point, as in

In[1]:= Fit[{{1,2},{3,7},{4,6},{7,9},{11,14}}, x-4, x]

Out[1]= 1.64706 (-4 + x)

which fits the data to a straight line that passes through 4 (that is,
it sets the y intercept to 4). If you have an example where you're
not sure how to do this, you could try posting your example, or
contacting technical support. In any case, fixing a point is just
a simple modification of the model in the input to Fit.

Dave Withoff
Wolfram Research

  • Prev by Date: avoid spurious vertical segment in step function plot
  • Next by Date: Re: Could we build matrix with codition instruction?
  • Previous by thread: Re: Fit with constraints?
  • Next by thread: Re: Re: Fit with constraints?