nishiru3の日記

備忘録です。ネットのゴミ。

2014-11-05から1日間の記事一覧

自己相関係数のプログラム

自己相関係数を求めるためのプログラムです。 #include <iostream> #include <fstream> #include <cstdlib> #include <cmath> using namespace std; void self_corr (double* x, int imax,double* r){ // 平均値の算定 double x_ave = 0.0; for(int i = 0; i < imax; i++){ x_ave+=x[i]; } x_ave</cmath></cstdlib></fstream></iostream>…