bdScalarwproduct | R Documentation |
This function performs a weighted product of a matrix(X) with a weighted diagonal matrix (w)
bdScalarwproduct(A, w, op)
A |
numerical or Delayed Array matrix |
w |
scalar, weight |
op |
string indicating if operation "Xw" or "wX" |
numerical matrix
n <- 100 p <- 60 X <- matrix(rnorm(n*p), nrow=n, ncol=p) w <- 0.75 bdScalarwproduct(X, w,"Xw") bdScalarwproduct(X, w,"wX")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.