POV-Ray : Newsgroups : povray.advanced-users : Least Squares fitting : Re: Least Squares fitting Server Time
1 Apr 2023 21:51:21 EDT (-0400)
  Re: Least Squares fitting  
From: yesbird
Date: 11 Mar 2023 23:36:35
Message: <dff7ec21-4b6a-a3c5-10db-1da406397849@gmail.com>
On 11/03/2023 23:44, Bald Eagle wrote:
> "yesbird" <nomail@nomail> wrote:
> I'm not sure how you reach that conclusion, since the function takes all of the
> randomly generated points and calculates the center point and radius of a single
> best-fitting sphere.   It fits a sphere to the data, not the other way around.
Yes, exactly, but I mean something like this:

Please find fixed Matlab function in attachment.
Btw, there is a free version of ML, which supports original syntax:

Post a reply to this message

Download 'sphere_fit.m.txt' (1 KB) Download 'test_sf.m.txt' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.