Added FIXME notices for Q1 and Q2

Q1 and Q2 are calculating incorrectly, specifically that they are ignoring the median value.
This commit is contained in:
Nicolás A. Ortega 2014-05-07 11:03:00 -05:00
parent 3b24d422d2
commit f9a739f556

View File

@ -134,6 +134,7 @@ public class MMMCalc {
}
}
// FIXME: Q1 calculates incorrectly, it is supposed to be halfway between the first variable and the median variable.
private static void calcQ1() {
int q1Pos = numArray.length / 4;
boolean exact;
@ -206,6 +207,7 @@ public class MMMCalc {
}
}
// FIXME: Needs to calculate haflway between the median value and the last value.
private static void calcQ3() {
int q3Pos = (numArray.length * 3) / 4;
boolean exact;