projects
/
valse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix test.constructionModelesLassoMLE; TODO: det(rho[,,r]) ? numerical errors ? ....
[valse.git]
/
src
/
test
/
generate_test_data
/
helpers
/
EMGLLF.R
diff --git
a/src/test/generate_test_data/helpers/EMGLLF.R
b/src/test/generate_test_data/helpers/EMGLLF.R
index
7c80081
..
a624156
100644
(file)
--- a/
src/test/generate_test_data/helpers/EMGLLF.R
+++ b/
src/test/generate_test_data/helpers/EMGLLF.R
@@
-135,7
+135,7
@@
EMGLLF = function(phiInit,rhoInit,piInit,gamInit,mini,maxi,gamma,lambda,X,Y,tau)
{
#FIXME: numerical problems, because 0 < det(Rho[,,r] < EPS; what to do ?!
# consequence: error in while() at line 77
{
#FIXME: numerical problems, because 0 < det(Rho[,,r] < EPS; what to do ?!
# consequence: error in while() at line 77
- Gam[i,r] = pi[r] * exp(-0.5*sqNorm2[r] + shift) * det(rho[,,r])
+ Gam[i,r] = pi[r] * exp(-0.5*sqNorm2[r] + shift)
#
* det(rho[,,r])
sumLLF1 = sumLLF1 + Gam[i,r] / (2*base::pi)^(m/2)
}
sumLogLLF2 = sumLogLLF2 + log(sumLLF1)
sumLLF1 = sumLLF1 + Gam[i,r] / (2*base::pi)^(m/2)
}
sumLogLLF2 = sumLogLLF2 + log(sumLLF1)