| summary.iva | R Documentation |
summary method for the class "iva".
## S3 method for class 'iva' summary(object, ...)
object |
An object of class |
... |
Further arguments are not used. |
The function print all the information of the "iva" object except the estimated sources and the estimated unmixing matrices.
No return value, called for summarizing the object of class "iva".
Mika Sipilä
NewtonIVA, fastIVA
if (require("LaplacesDemon")) {
# Generate sources from multivariate Laplace distribution
P <- 4; N <- 1000; D <- 4;
S <- array(NA, c(P, N, D))
for (i in 1:P) {
U <- array(rnorm(D * D), c(D, D))
Sigma <- crossprod(U)
S[i, , ] <- rmvl(N, rep(0, D), Sigma)
}
# Generate mixing matrices from standard normal distribution
A <- array(rnorm(P * P * D), c(P, P, D))
# Generate mixtures
X <- array(NaN, c(P, N, D))
for (d in 1:D) {
X[, , d] <- A[, , d] %*% S[, , d]
}
# Estimate sources and unmixing matrices
res_G <- NewtonIVA(X, source_density = "gaussian")
summary(res_G)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.