X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=epclust%2FR%2FcomputeWerDists.R;h=5f12896fd69a8fc7b0c52f6bf2bc6231fba14572;hb=074a48c472fcbdf99a36fae333dd8dbb568c06a0;hp=4dbcb7b8ca09c4c0f6202adb2f114b02311ec8e9;hpb=e0154a59e55143dac0fbd2a4739a3509bc958e76;p=epclust.git diff --git a/epclust/R/computeWerDists.R b/epclust/R/computeWerDists.R index 4dbcb7b..5f12896 100644 --- a/epclust/R/computeWerDists.R +++ b/epclust/R/computeWerDists.R @@ -12,8 +12,8 @@ #' @return A distances matrix of size K x K where K == length(indices) #' #' @export -computeWerDists <- function(indices, getSeries, nb_series_per_chunk, smooth_lvl, nvoice, - nbytes, endian, ncores=3, verbose=FALSE, parll=TRUE) +computeWerDists <- function(indices, getSeries, nb_series_per_chunk, smooth_lvl=3, nvoice=4, + nbytes=4, endian=.Platform$endian, ncores=3, verbose=FALSE) { n <- length(indices) L <- length(getSeries(1)) #TODO: not very neat way to get L @@ -97,6 +97,7 @@ computeWerDists <- function(indices, getSeries, nb_series_per_chunk, smooth_lvl, for (inds in indices_cwt) computeSaveCWT(inds) + parll <- (ncores > 1) if (parll) { # outfile=="" to see stderr/stdout on terminal