Skip to content

Commit

Permalink
Update MhParameterProposal function
Browse files Browse the repository at this point in the history
  • Loading branch information
dm13450 committed Mar 8, 2023
1 parent b920f85 commit 3cf8554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/cluster_label_predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ ClusterLabelPredict.conjugate <- function(dpobj, newData) {

for (j in seq_along(clusterParams)) {
clusterParams[[j]] <- array(c(clusterParams[[j]], post_draw[[j]]),
dim = c(dim(post_draw[[j]])[1:2], dim(clusterParams[[j]])[3] +
1))
dim = c(dim(post_draw[[j]])[1:2],
dim(clusterParams[[j]])[3] + 1))
}


Expand Down
4 changes: 2 additions & 2 deletions R/mixing_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ MixingDistribution <- function(distribution, priorParameters, conjugate, mhStepS
return(mdObj)
}

MhParameterProposal <- function(MixingDistribution, old_params){
UseMethod("MhParameterProposal",MixingDistribution)
MhParameterProposal <- function(mdObj, old_params){
UseMethod("MhParameterProposal", mdObj)
}

0 comments on commit 3cf8554

Please sign in to comment.