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:
parent
3b24d422d2
commit
f9a739f556
@ -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() {
|
private static void calcQ1() {
|
||||||
int q1Pos = numArray.length / 4;
|
int q1Pos = numArray.length / 4;
|
||||||
boolean exact;
|
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() {
|
private static void calcQ3() {
|
||||||
int q3Pos = (numArray.length * 3) / 4;
|
int q3Pos = (numArray.length * 3) / 4;
|
||||||
boolean exact;
|
boolean exact;
|
||||||
|
Loading…
Reference in New Issue
Block a user