00001 // 邨ア險亥�ヲ逅� 00002 // 2011/02/14 Yuki YOKOKURA 00003 // 00004 // 蟷ウ蝮��シ悟�謨」�シ梧ィ呎コ門¥蟾ョ�シ悟�ア蛻�謨」�シ檎嶌髢「菫よ焚縺ョ險育ョ� 00005 // 00006 // Copyright (C) 2011 Yuki YOKOKURA 00007 // This program is free software; 00008 // you can redistribute it and/or modify it under the terms of the GNU General Public License 00009 // as published by the Free Software Foundation; either version 3 of the License, or any later version. 00010 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00011 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 // See the GNU General Public License for more details <http://www.gnu.org/licenses/>. 00013 // Besides, you can negotiate about other options of licenses instead of GPL. 00014 // If you would like to get other licenses, please contact us<yuki@katsura.sd.keio.ac.jp>. 00015 00016 #ifndef STATISTICS 00017 #define STATISTICS 00018 00019 #include <math.h> 00020 00021 double Average(const double *u, unsigned long N); // 菫。蜿キu縺ョ蟷ウ蝮�繧定ィ育ョ励☆繧� 00022 double Variance(const double *u, unsigned long N); // 菫。蜿キu縺ョ蛻�謨」繧呈アゅa繧� 00023 double StandardDev(const double *u, unsigned long N); // 菫。蜿キu縺ョ讓呎コ門¥蟾ョ繧呈アゅa繧� 00024 double Covariance(const double *u1, const double *u2, unsigned long N); // 菫。蜿キu1縺ィ菫。蜿キu2縺ョ髢薙�ョ蜈ア蛻�謨」繧定ィ育ョ励☆繧� 00025 double Correlation(const double *u1, const double *u2, unsigned long N); // 菫。蜿キu1縺ィ菫。蜿キu2縺ョ髢薙�ョ逶ク髢「菫よ焚繧呈アゅa繧� 00026 00027 #endif 00028