X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fts%2Finnovations.c;h=3ab2f3edce165ed0a709688e711867986683eee3;hb=b5c82cc9aabe7e641011130240ae1b2e84348e23;hp=553e20e8f7953a879595c3ddb0dce2e0e715b1dc;hpb=4aa40ed36fcdb13f73520945d804e6d3d8d52738;p=pspp-builds.git diff --git a/src/math/ts/innovations.c b/src/math/ts/innovations.c index 553e20e8..3ab2f3ed 100644 --- a/src/math/ts/innovations.c +++ b/src/math/ts/innovations.c @@ -26,10 +26,14 @@ */ #include + +#include +#include + #include #include -#include #include +#include #include #include @@ -160,7 +164,7 @@ innovations_update_scale (struct innovations_estimate *est, double *theta, for (j = 0; j < i; j++) { k = i - j - 1; - result -= theta[k] * theta[k] * est->scale[j]; + result -= pow2 (theta[k]) * est->scale[j]; } est->scale[i] = result; }