X, Y, eps, phi = double(p * m * k), rho = double(m * m * k), pi = double(k),
LLF = double(maxi), S = double(p * m * k), affec = integer(n), n, p, m, k,
PACKAGE = "valse")
- list(phi = phi, rho = rho, pi = pi, llh = llh, S = S, affec=affec)
}
# R version - slow but easy to read
computeModels <- function(k)
{
if (ncores_outer > 1)
- require("valse") #nodes start with an empty environment
+ require("valse") #nodes start with an empty environment
if (verbose)
print(paste("Parameters initialization for k =", k))
Data = generateXY(200, c(0.5,0.5), rep(0,p), Beta, diag(p), covY)
#
-Res = valse(Data$X,Data$Y, fast=FALSE, plot=FALSE, verbose = TRUE, kmax=3, size_coll_mod = 50, selecMod = "DDSE", mini = 50, maxi=100)
+Res = valse(Data$X,Data$Y, fast=TRUE, plot=FALSE, verbose = TRUE, kmax=3, size_coll_mod = 50, selecMod = "DDSE", mini = 50, maxi=100)
plot(Res$tableau[,3], -Res$tableau[,4])