We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e.g.,
library(distributional) p1 <- p2 <- 0.5 mu1 <- c(0, 0) mu2 <- c(3, 1) Sigma1 <- rbind(c(1, 0.5), c(0.5, 1)) Sigma2 <- diag(2) dist_mixture( dist_multivariate_normal(list(mu1), list(Sigma1)), dist_multivariate_normal(list(mu2), list(Sigma2)), weights = c(p1, p2) ) |> mean() #> Error in vapply(x[["dist"]], mean, numeric(1L), ...): values must be length 1, #> but FUN(X[[1]]) result is length 2
Created on 2024-07-31 with reprex v2.1.1
The text was updated successfully, but these errors were encountered:
Implementation of this partly depends on #25, due to the problem being encapsulation of different distribution types.
dim(<dist>) exists to identify the appropriate dimension of the distribution, but is unused (and is not currently easy to use).
dim(<dist>)
Sorry, something went wrong.
No branches or pull requests
e.g.,
Created on 2024-07-31 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: