dm13450/dirichletprocess

Issue with the LikelihoodDP() function

Opened this issue · 0 comments

I noticed that in the latest release the LikelihoodDP() function resizes the likelihoodValues object using the code

dim(likelihoodValues) <- c(nrow(dpobj$data), dpobj$numberClusters)

but this shuffles the values in a strange way. I think it should be replaced by something like

likelihoodValues <- matrix(likelihoodValues, nrow = dpobj$n, ncol = dpobj$numberClusters, byrow = TRUE)

Looking forward to know what do you think about it. Thanks!