I need some pointers to write a polynomial regression subroutine for three-dimensional points (i.e. find coefficients of a polynomial of order X that are set to a certain number of three-dimensional points).
I found the code for two-dimensional polynomial regression, however I need to consider the 3rd dimension.
I am looking for code examples and / or explanations.
source
share