Compute the singular-value decomposition of a rectangular matrix with weights for rows and columns.
svd.triplet(X, row.w=NULL, col.w=NULL, ncp=Inf)
a vector containing the singular values of 'x';
a matrix whose columns contain the left singular vectors of 'x';
a matrix whose columns contain the right singular vectors of 'x'.
a data matrix
vector with the weights of each row (NULL by default and the weights are uniform)
vector with the weights of each column (NULL by default and the weights are uniform)
the number of components kept for the outputs