https://github.com/cran/mlegp
Raw File
Tip revision: 95bb84eb250c116201a2115cb2755a8aeb4df479 authored by Garrett M. Dancik on 10 December 2012, 00:00:00 UTC
version 3.1.3
Tip revision: 95bb84e
numSingularValues.R
`numSingularValues` <-
function(Y, cutoff = 99) {
        p = singularValueImportance(Y)
        np = 1
        while (p[np] < cutoff && np < dim(p)[1]) {
           np = np+1
        }
        return (np)
}

back to top