R/numSingularValues.R

Defines functions `numSingularValues`

`numSingularValues` <-
function(Y, cutoff = 99) {
        p = singularValueImportance(Y)
        np = 1
        while (p[np] < cutoff && np < dim(p)[1]) {
           np = np+1
        }
        return (np)
}

Try the mlegp package in your browser

Any scripts or data that you put into this service are public.

mlegp documentation built on Jan. 20, 2026, 9:07 a.m.