From 74d159a23f2b80462cdcbff9c67a0ebd11b3c3dd Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Wed, 4 Feb 2015 01:09:53 +0100 Subject: [PATCH] Neues Package: org.hwo.statistics --- src/org/hwo/statistics/Statistics.java | 63 ++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/org/hwo/statistics/Statistics.java diff --git a/src/org/hwo/statistics/Statistics.java b/src/org/hwo/statistics/Statistics.java new file mode 100644 index 0000000..9880a36 --- /dev/null +++ b/src/org/hwo/statistics/Statistics.java @@ -0,0 +1,63 @@ +package org.hwo.statistics; + +public class Statistics { + + Float[] values; // Wertereihe + + boolean uKnown; + + Float u; // Arithmetisches Mittel + Float s2; // Korrigierte Stichprobenvarianz + Float s; // Standardabweichung + + + + public Statistics(Float[] values){ + this.values = values; + uKnown = false; + } + + private void calcU(){ + float avg = 0; + for (int i=0;i