summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/statistics.h
diff options
context:
space:
mode:
authorDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
committerDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
commitc6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch)
tree1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/utils/asymptote/statistics.h
parent07ee7222e389b0777456b427a55c22d0e6ffd267 (diff)
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/statistics.h')
-rw-r--r--Build/source/utils/asymptote/statistics.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/Build/source/utils/asymptote/statistics.h b/Build/source/utils/asymptote/statistics.h
deleted file mode 100644
index f3c87c18d9a..00000000000
--- a/Build/source/utils/asymptote/statistics.h
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifndef __statistics_h__
-#define __statistics_h__ 1
-
-#include <math.h>
-
-namespace utils {
-
-class statistics {
- unsigned int N;
- double A;
- double varL;
- double varH;
-public:
- statistics() : N(0), A(0.0), varL(0.0), varH(0.0) {}
- double count() {return N;}
- double mean() {return A;}
- void add(double t) {
- ++N;
- double diff=t-A;
- A += diff/N;
- double v=diff*(t-A);
- if(diff < 0.0)
- varL += v;
- else
- varH += v;
- }
- double stdev(double var, double f) {
- double factor=N > f ? f/(N-f) : 0.0;
- return sqrt(var*factor);
- }
- double stdev() {
- return stdev(varL+varH,1.0);
- }
- double stdevL() {
- return stdev(varL,2.0);
- }
- double stdevH() {
- return stdev(varH,2.0);
- }
- void output(const char *text, unsigned int m) {
- std::cout << text << ":\n"
- << m << "\t"
- << A << "\t"
- << stdevL() << "\t"
- << stdevH() << std::endl;
- }
-};
-
-}
-
-#endif