📄 whittle_mle.c
字号:
#include "timeseries.h" double whittle_MLE(double *P, double *Pfull, int n_psd, double *r, int end_flag) {int i, j, k;double c1, c2, scale, mle;double N;c1 = c2 = 0.0;for (j = 0; j < n_psd; j++) { c1 += log(Pfull[j]); c2 += P[j]/Pfull[j];} N = (double) n_psd;scale = sqrt(c2 / N);mle = -1.0 * (N * log(c2 / N) + c1 + N);r[0] = scale;return(mle);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -