R/SDI.R

Defines functions SDI

Documented in SDI

SDI <-
function(x){
    n = length(x)
    y = rep(1/n,n)
    z1 = 1/sum(x^2)
    s = 1/sum(y^2)
    z = round(z1/s,4)
    return(z)
}

Try the MoonFinder package in your browser

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

MoonFinder documentation built on Oct. 30, 2019, 11:31 a.m.