⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 whittle_mle.c

📁 最大似然估计算法
💻 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 + -