Advanced Robot Control System  5.1-REV.51SF170515
Statistics.hh
[詳解]
1 // 統計処理
2 // 2016/08/17 Yuki YOKOKURA
3 //
4 // 平均,分散,標準偏差,共分散,相関係数の計算
5 //
6 // Copyright (C) 2011-2016 Yuki YOKOKURA
7 // This program is free software;
8 // you can redistribute it and/or modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 3 of the License, or any later version.
10 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 // See the GNU General Public License for more details <http://www.gnu.org/licenses/>.
13 // Besides, you can negotiate about other options of licenses instead of GPL.
14 // If you would like to get other licenses, please contact us<yuki@katsura.sd.keio.ac.jp>.
15 
16 #ifndef STATISTICS
17 #define STATISTICS
18 
19 double Average(const double *u, unsigned long N); // 信号uの平均を計算する
20 double Variance(const double *u, unsigned long N); // 信号uの分散を求める
21 double StandardDev(const double *u, unsigned long N); // 信号uの標準偏差を求める
22 double Covariance(const double *u1, const double *u2, unsigned long N); // 信号u1と信号u2の間の共分散を計算する
23 double Correlation(const double *u1, const double *u2, unsigned long N); // 信号u1と信号u2の間の相関係数を求める
24 
25 #endif
26 
double Variance(const double *u, unsigned long N)
Definition: Statistics.cc:31
double StandardDev(const double *u, unsigned long N)
Definition: Statistics.cc:47
double Correlation(const double *u1, const double *u2, unsigned long N)
Definition: Statistics.cc:70
double Covariance(const double *u1, const double *u2, unsigned long N)
Definition: Statistics.cc:52
double Average(const double *u, unsigned long N)
Definition: Statistics.cc:21