Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?windows-1252?Q?Hans-Bernhard_Br=F6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Fit 3D Line to data Date: Wed, 25 Feb 2015 19:25:40 +0100 Lines: 17 Message-ID: References: <68e9ed33-a7ef-4106-8730-151263df2011@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de axx24a4/Bg8ww5dBjNSR7QB9NSIvAdqAEn19ob5Vu0mIzDxiRqUWbX8hzu Cancel-Lock: sha1:eiwKvKApnGqGHVZj1darjE5WtCI= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:2789 Am 25.02.2015 um 14:34 schrieb Karl: > Am 24.02.2015 um 20:16 schrieb Hans-Bernhard Bröker: >> Am 23.02.2015 um 07:27 schrieb Erik Zweigle: >>> I am trying to fit a line to the 4 data points shown below. >> That's not a well-defined task, I'm afraid. Fitting a line to a dataset >> is reasonably well-defined in 2D, but not in 3D. > Hm. I´d say you define the line with parameters x0,y0,z0 and two angles, > derive the minimum distance d(x,y,z) of a point xyz from that line, and > minimise that. While that's _one_ viable interpretation of the stated problem, it's far from being the only one. Which is precisely what makes the task not well-defined.