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