Syntax fix to indMix() (#25)
This commit is contained in:
parent
3069577ebd
commit
ba968e77d5
2 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ greedyMix <- function(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
# Generating partition summary ===============================================
|
# Generating partition summary ===============================================
|
||||||
logml_npops_partitionSummary <- indMixWrapper(c);
|
logml_npops_partitionSummary <- indMixWrapper(data, npops, fixedK);
|
||||||
logml <- logml_npops_partitionSummary[["logml"]]
|
logml <- logml_npops_partitionSummary[["logml"]]
|
||||||
npops <- logml_npops_partitionSummary[["npops"]]
|
npops <- logml_npops_partitionSummary[["npops"]]
|
||||||
partitionSummary <- logml_npops_partitionSummary[["partitionSummary"]]
|
partitionSummary <- logml_npops_partitionSummary[["partitionSummary"]]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
indMixWrapper <- function(fixedK = FALSE) {
|
indMixWrapper <- function(c, npops, fixedK = FALSE) {
|
||||||
if (fixedK) {
|
if (fixedK) {
|
||||||
indMix(c, npops, TRUE)
|
|
||||||
} else {
|
|
||||||
stop("indMix_fixK() not yet implemented.") # TODO: translate indMix_fixK.m
|
stop("indMix_fixK() not yet implemented.") # TODO: translate indMix_fixK.m
|
||||||
|
} else {
|
||||||
|
indMix(c, npops, TRUE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue