Improved messages (#25)
This commit is contained in:
parent
3ab0a73a02
commit
5d3acc7cb0
1 changed files with 3 additions and 4 deletions
|
|
@ -136,7 +136,7 @@ indMix <- function(c, npops, counts = NULL, sumcounts = NULL, max_iter = 100L, d
|
||||||
muutoksia <- 0
|
muutoksia <- 0
|
||||||
|
|
||||||
if (dispText) {
|
if (dispText) {
|
||||||
message(paste("\nPerforming steps:", as.character(roundTypes)))
|
message(paste("Performing steps:", as.character(roundTypes)))
|
||||||
}
|
}
|
||||||
|
|
||||||
for (n in 1:length(roundTypes)) {
|
for (n in 1:length(roundTypes)) {
|
||||||
|
|
@ -549,9 +549,8 @@ indMix <- function(c, npops, counts = NULL, sumcounts = NULL, max_iter = 100L, d
|
||||||
npops <- poistaTyhjatPopulaatiot(npops)
|
npops <- poistaTyhjatPopulaatiot(npops)
|
||||||
POP_LOGML <- computePopulationLogml(1:npops, adjprior, priorTerm)
|
POP_LOGML <- computePopulationLogml(1:npops, adjprior, priorTerm)
|
||||||
if (dispText) {
|
if (dispText) {
|
||||||
print(paste("Found partition with", as.character(npops), "populations."))
|
message("Found partition with ", as.character(npops), " populations.")
|
||||||
print(paste("Log(ml) =", as.character(logml)))
|
message("Log(ml) = ", as.character(logml))
|
||||||
print(" ")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logml > logmlBest) {
|
if (logml > logmlBest) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue