Skip to content

Commit

Permalink
Assign the default value for the obs_indices
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 19, 2023
1 parent 9bd2361 commit a7a641c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/mfairELBO.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
#'
#' @param Y Observed main data matrix.
#' @param object MFAIRSingleFactor object containing the information about the fitted single factor MFAI model.
#' @param obs_indices Indices of the observed entries in the main data matrix Y. The default value is NULL and used only when Y is stored in the sparse mode.
#' @param obs_indices Indices of the observed entries in the main data matrix Y and needs to be specified only when Y is stored in the sparse mode. The default value is NULL.
#'
#' @return Numeric. The ELBO.
#' @export
#'
getELBO <- function(Y, object, obs_indices) {
getELBO <- function(Y, object, obs_indices = NULL) {
N <- nrow(Y)
M <- ncol(Y)

Expand Down
4 changes: 2 additions & 2 deletions man/getELBO.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7a641c

Please sign in to comment.