- # mutex and big.matrix objects cannot be passed directly:
- # they will be accessed from their description
- m_desc <- synchronicity::describe(m)
- synchrones_desc <- bigmemory::describe(synchrones)
- medoids <- bigmemory::as.big.matrix(medoids)
- medoids_desc <- bigmemory::describe(medoids)
- # outfile=="" to see stderr/stdout on terminal
- cl <-
- if (verbose)
- parallel::makeCluster(ncores_clust, outfile="")
- else
- parallel::makeCluster(ncores_clust)
- parallel::clusterExport(cl, envir=environment(),
- varlist=c("synchrones_desc","m_desc","medoids_desc","getSeries"))
- }