mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
polyfit.hpp : modify n to m+1
This commit is contained in:
@@ -62,7 +62,7 @@ We can accumulate VTV and VTY recursively as they are of fixed size, where:
|
|||||||
|
|
||||||
VTV = transpose(V)*V =
|
VTV = transpose(V)*V =
|
||||||
__ __
|
__ __
|
||||||
| n x0+x1+...+xm x0^2+x1^2+...+xm^3 .......... x0^n+x1^n+...+xn^n |
|
| m+1 x0+x1+...+xm x0^2+x1^2+...+xm^3 .......... x0^n+x1^n+...+xn^n |
|
||||||
|x0+x1+...+xm x0^2+x1^2+...+xm^3 x0^3+x1^3+...+xm^3 .......... x0^(n+1)+x1^(n+1)+...+xm^(n+1) |
|
|x0+x1+...+xm x0^2+x1^2+...+xm^3 x0^3+x1^3+...+xm^3 .......... x0^(n+1)+x1^(n+1)+...+xm^(n+1) |
|
||||||
| . . . . |
|
| . . . . |
|
||||||
| . . . . |
|
| . . . . |
|
||||||
|
|||||||
Reference in New Issue
Block a user