1 /**************************************************************************
3 * Copyright (C) 1995 Silicon Graphics, Inc.
5 * These coded instructions, statements, and computer programs were
6 * developed by SGI for public use. If any changes are made to this code
7 * please try to get the changes back to the author. Feel free to make
8 * modifications and changes to the code and release it.
10 **************************************************************************/
12 /* FUZZ: disable check_for_math_include */
20 mean(const double sum
, const int n
)
34 variance(const double sum
, const double sumofsquares
, const int n
)
38 meanofsum
= mean(sum
, n
);
40 return (mean(sumofsquares
,n
) - (meanofsum
* meanofsum
));
45 stddev(const double sum
, const double sumofsquares
, const int n
)
47 return(sqrt(fabs(variance(sum
, sumofsquares
, n
))));