Setting up for calculations of Q1 and Q3.
This commit is contained in:
parent
dec3bdca0a
commit
da36eac98a
@ -14,7 +14,9 @@ public class MMMCalc {
|
|||||||
private static boolean verbose = false;
|
private static boolean verbose = false;
|
||||||
private static float[] numArray;
|
private static float[] numArray;
|
||||||
private static float mean = 0;
|
private static float mean = 0;
|
||||||
|
private static float q1 = 0;
|
||||||
private static float median = 0;
|
private static float median = 0;
|
||||||
|
private static float q3 = 0;
|
||||||
private static float mode = 0;
|
private static float mode = 0;
|
||||||
private static float range = 0;
|
private static float range = 0;
|
||||||
private static float stdDev = 0;
|
private static float stdDev = 0;
|
||||||
@ -66,7 +68,9 @@ public class MMMCalc {
|
|||||||
sortArray();
|
sortArray();
|
||||||
|
|
||||||
calcMean();
|
calcMean();
|
||||||
|
calcQ1();
|
||||||
calcMedian();
|
calcMedian();
|
||||||
|
calcQ3();
|
||||||
calcMode();
|
calcMode();
|
||||||
calcRange();
|
calcRange();
|
||||||
calcStdDev();
|
calcStdDev();
|
||||||
@ -128,6 +132,10 @@ public class MMMCalc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void calcQ1() {
|
||||||
|
// Stuff here.
|
||||||
|
}
|
||||||
|
|
||||||
private static void calcMedian() {
|
private static void calcMedian() {
|
||||||
int midVar = numArray.length / 2;
|
int midVar = numArray.length / 2;
|
||||||
boolean even;
|
boolean even;
|
||||||
@ -164,6 +172,10 @@ public class MMMCalc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void calcQ3() {
|
||||||
|
// Stuff here.
|
||||||
|
}
|
||||||
|
|
||||||
private static void calcMode() {
|
private static void calcMode() {
|
||||||
HashMap<Float, Float> fx = new HashMap<Float, Float>();
|
HashMap<Float, Float> fx = new HashMap<Float, Float>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user