summaryrefslogtreecommitdiff
path: root/apps/JAWS/clients/WebSTONE/src/statistics.c
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-04-10 19:59:37 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-04-10 19:59:37 +0000
commit3df4acfa816441fc28a95dee6d0191a927145d95 (patch)
treeb5ae7ca44662cfd8e5c95f1826e4406021a606f5 /apps/JAWS/clients/WebSTONE/src/statistics.c
parent60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff)
downloadATCD-pre-subset.tar.gz
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'apps/JAWS/clients/WebSTONE/src/statistics.c')
-rw-r--r--apps/JAWS/clients/WebSTONE/src/statistics.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/apps/JAWS/clients/WebSTONE/src/statistics.c b/apps/JAWS/clients/WebSTONE/src/statistics.c
deleted file mode 100644
index efc82c96e9a..00000000000
--- a/apps/JAWS/clients/WebSTONE/src/statistics.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* $Id$ */
-/**************************************************************************
- * *
- * Copyright (C) 1995 Silicon Graphics, Inc. *
- * *
- * These coded instructions, statements, and computer programs were *
- * developed by SGI for public use. If any changes are made to this code*
- * please try to get the changes back to the author. Feel free to make *
- * modifications and changes to the code and release it. *
- * *
- **************************************************************************/
-
-/* FUZZ: disable check_for_math_include */
-#include <math.h>
-#include <stdlib.h>
-#include "sysdep.h"
-#include "bench.h"
-
-
-double
-mean(const double sum, const int n)
-{
- if (n)
- {
- return(sum / n);
- }
- else
- {
- return(0);
- }
-}
-
-
-double
-variance(const double sum, const double sumofsquares, const int n)
-{
- double meanofsum;
-
- meanofsum = mean(sum, n);
-
- return (mean(sumofsquares,n) - (meanofsum * meanofsum));
-}
-
-
-double
-stddev(const double sum, const double sumofsquares, const int n)
-{
- return(sqrt(fabs(variance(sum, sumofsquares, n))));
-}