| svds.directed_factor_model {fastRG} | R Documentation |
Compute the singular value decomposition of the expected adjacency matrix of a directed factor model
Description
Compute the singular value decomposition of the expected adjacency matrix of a directed factor model
Usage
## S3 method for class 'directed_factor_model'
svds(A, k = min(A$k1, A$k2), nu = k, nv = k, opts = list(), ...)
Arguments
A |
|
k |
Desired rank of decomposition. |
nu |
Number of left singular vectors to be computed. This must
be between 0 and |
nv |
Number of right singular vectors to be computed. This must
be between 0 and |
opts |
Control parameters related to the computing algorithm. See Details below. |
... |
Unused, included only for consistency with generic signature. |
Details
The opts argument is a list that can supply any of the
following parameters:
ncvNumber of Lanzcos basis vectors to use. More vectors will result in faster convergence, but with greater memory use.
ncvmust be satisfyk < ncv \le pwherep = min(m, n). Default ismin(p, max(2*k+1, 20)).tolPrecision parameter. Default is 1e-10.
maxitrMaximum number of iterations. Default is 1000.
centerEither a logical value (
TRUE/FALSE), or a numeric vector of lengthn. If a vectorcis supplied, then SVD is computed on the matrixA - 1c', in an implicit way without actually forming this matrix.center = TRUEhas the same effect ascenter = colMeans(A). Default isFALSE.scaleEither a logical value (
TRUE/FALSE), or a numeric vector of lengthn. If a vectorsis supplied, then SVD is computed on the matrix(A - 1c')S, wherecis the centering vector andS = diag(1/s). Ifscale = TRUE, then the vectorsis computed as the column norm ofA - 1c'. Default isFALSE.