Computes singular value decomposition of a matrix.
SVD(a)
input matrix.
a structure containing the 3 matrices of the singular value decomposition of the input.
R interface for Numerical Recipes singular value decomposition routine.
See discussions in the text of “Time-Frequency Analysis”.
# NOT RUN { hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") } X <- hilbert(6) z = SVD(X) z # }
Run the code above in your browser using DataCamp Workspace