Skip to content

Commit

Permalink
Changed name of setNumProcessors method to setParallelism in FGS. Fix…
Browse files Browse the repository at this point in the history
…ed the zero degrees of freedom problem in the delta sextad test.
  • Loading branch information
jdramsey committed Jan 6, 2016
1 parent 7c88361 commit 05ed507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ private double r(double array1[], double array2[], int N) {

private int dofDrton(int n) {
int dof = ((n - 2) * (n - 3)) / 2 - 2;
if (dof < 0) dof = 0;
if (dof < 1) dof = 1;
return dof;
}

private int dofHarman(int n) {
int dof = n * (n - 5) / 2 + 1;
if (dof < 0) dof = 0;
if (dof < 1) dof = 1;
return dof;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void testBollenExampleb() {

IntSextad[] _sextads = {t2, t5, t10, t3, t6};
double p = test.getPValue(_sextads);
assertEquals(0.90, p, 0.01);
assertEquals(0.21, p, 0.01);

_sextads = new IntSextad[] {t10};
p = test.getPValue(_sextads);
Expand Down

0 comments on commit 05ed507

Please sign in to comment.