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 March 18, 2022, 5:29 p.m.