From 4e214536710f3945b40f73ce5517274db27114a3 Mon Sep 17 00:00:00 2001 From: Yu Lab at Virginia Tech <45985407+yu-lab-vt@users.noreply.github.com> Date: Sun, 19 Apr 2020 00:21:32 -0400 Subject: [PATCH] Update ComponentTree3D4Fast.java --- src/main/java/ComponentTree3D4Fast.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ComponentTree3D4Fast.java b/src/main/java/ComponentTree3D4Fast.java index b4a1f07..7c06e42 100644 --- a/src/main/java/ComponentTree3D4Fast.java +++ b/src/main/java/ComponentTree3D4Fast.java @@ -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];