I have some random points. I need to find the best fit line in 3D space in C#.
Currently I have the algorithm for 2D and it works perfectly. Check the below link,
Algorithm for scatter plot 'best-fit' line
I need to find it in 3D in this same manner. Is there any algorithm for this in C# ?