I share two classes in case someone can use it.
In the attached project it is two classes: TaubinCircleFit and LinearRegression.
Although the code in the Main module and the Layout is stolen from this post from Erel this is a different approach to regression.
The circle fit is a conversion of Nikolau Chernov's c++ code to B4X code. The c++ code can be found at: https://people.cas.uab.edu/~mosya/cl/CircleFitByTaubin.cpp
In the attached project it is two classes: TaubinCircleFit and LinearRegression.
Although the code in the Main module and the Layout is stolen from this post from Erel this is a different approach to regression.
The circle fit is a conversion of Nikolau Chernov's c++ code to B4X code. The c++ code can be found at: https://people.cas.uab.edu/~mosya/cl/CircleFitByTaubin.cpp