From 42b4156bae1ff54c8a09a662d36001eae2acfffe Mon Sep 17 00:00:00 2001 From: yinjiajie Date: Sun, 7 Jan 2018 16:04:30 +0800 Subject: [PATCH] polyfit.hpp : modify n to m+1 --- src/modules/events/temperature_calibration/polyfit.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/events/temperature_calibration/polyfit.hpp b/src/modules/events/temperature_calibration/polyfit.hpp index 960afd83f4..a9e4a7571d 100644 --- a/src/modules/events/temperature_calibration/polyfit.hpp +++ b/src/modules/events/temperature_calibration/polyfit.hpp @@ -62,7 +62,7 @@ We can accumulate VTV and VTY recursively as they are of fixed size, where: 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) | | . . . . | | . . . . |