X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2FR%2FcomputeGridLambda.R;h=b29553505d361f0c0916b666bdcacdf017f49402;hb=9ccdd55a1f6e9d409e8ae43b878a5e89c42e20c7;hp=8ec4d6604af58e3a47e2e56765d9953bd74c305d;hpb=aa480ac1fef50618978307a4df2cf9da1e285abc;p=valse.git diff --git a/pkg/R/computeGridLambda.R b/pkg/R/computeGridLambda.R index 8ec4d66..b295535 100644 --- a/pkg/R/computeGridLambda.R +++ b/pkg/R/computeGridLambda.R @@ -32,6 +32,5 @@ computeGridLambda = function(phiInit, rhoInit, piInit, gamInit, X, Y, for (j in 1:m) grid[i,j,] = abs(list_EMG$S[i,j,]) / (n*list_EMG$pi^gamma) } - grid = unique(grid) - grid + sort( unique(grid) ) }