mean.c

来自「NIST Handwriting OCR Testbed」· C语言 代码 · 共 17 行

C
17
字号
/*# proc: compute_mean - takes a list of integers and computes the mean.# proc:*/float compute_mean(ls, end)int *ls, end;{   int i;   float sum = 0.0;   for(i = 0; i < end; i++)      sum += (float)ls[i];   sum = sum/(float)end;   return(sum);}

⌨️ 快捷键说明

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