R/cdm_add_ridge_diagonal.R

Defines functions cdm_add_ridge_diagonal

## File Name: cdm_add_ridge_diagonal.R
## File Version: 0.03

cdm_add_ridge_diagonal <- function(x, eps=1E-10 )
{
    D <- ncol(x)
    rx <- x + diag( eps, D )
    return(rx)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.