Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

ivaBSS (version 1.0.0)

print.iva: Print an Object of Class iva

Description

print method for the class "iva".

Usage

# S3 method for iva
print(x, ...)

Arguments

x

An object of class "iva", usually the result of a call to NewtonIVA or fastIVA.

Further arguments are not used.

Value

No return value, called for printing information of the object of class "iva".

Details

The function prints all information of "iva" object, except the estimated source signals.

See Also

NewtonIVA, fastIVA

Examples

Run this code
# NOT RUN {
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")
  print(res_G)
}
# }

Run the code above in your browser using DataLab