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

📄 stats.h

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 H
字号:
/*   Simple stats stuff   Ed Karrels   Argonne National Laboratory*/#ifndef STATS_H_#define STATS_H_typedef struct {  double sum;  double sum_sq;  double max, min;  int n;} statData;#ifndef ANSI_ARGS#if defined(__STDC__) || defined(__cplusplus) || defined(HAVE_PROTOTYPES)#define ANSI_ARGS(a) a#else#define ANSI_ARGS(a) ()#endif#endif  /* initialize stats structure */statData *Stats_Create ANSI_ARGS((void));  /* add a data point */int Stats_Add ANSI_ARGS(( statData *stats, double x ));  /* add an array of data points */int Stats_AddArray ANSI_ARGS(( statData *stats, double *nums, int n ));  /* get the # of data points */int Stats_N ANSI_ARGS(( statData *stats ));  /* get the sum of the data points */double Stats_Sum ANSI_ARGS(( statData *stats ));  /* get the sum of the data points */double Stats_Min ANSI_ARGS(( statData *stats ));  /* get the sum of the data points */double Stats_Max ANSI_ARGS(( statData *stats ));  /* get the average of the data */double Stats_Av ANSI_ARGS(( statData *stats ));  /* get the standard deviation of the data */double Stats_StdDev ANSI_ARGS(( statData *stats ));  /* clear the stats data */int Stats_Reset ANSI_ARGS(( statData *stats ));  /* close the stats data */int Stats_Close ANSI_ARGS(( statData *stats ));#endif  /* #ifndef STATS_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -