Skip to content

Commit

Permalink
Update ComponentTree3D4Fast.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-lab-vt authored Apr 19, 2020
1 parent beec241 commit 4e21453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ComponentTree3D4Fast.java
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ public double zscoreCal(double t0, int M/*in*/, int N/*nei*/, paraP3D p, double
if (M>=pMu.length || N>=pMu[0].length) { //approximation of super large particle
sigmaScl = Math.sqrt((double)(M+N)/500);
M = (int) Math.floor(((double)M)/(M+N)*500);
N = 500 - M;//Math.floor(((double)N)/(M+N)*500);
N = 500 - M;//If we use previous function, the approximation is larger than expected
}
mu = pMu[M-1][N-1];
sigma = pSigma[M-1][N-1];
Expand Down

0 comments on commit 4e21453

Please sign in to comment.