https://github.com/cran/fields
Raw File
Tip revision: 05460ba5e2a26af404900f60478d75d09bd31294 authored by Doug Nychka on 17 May 2005, 19:39:08 UTC
version 2.0
Tip revision: 05460ba
radbas.constant.R
"radbas.constant" <-
function (m, d) 
{
    if (d%%2 == 0) {
        Amd <- (((-1)^(1 + m + d/2)) * (2^(1 - 2 * m)) * (pi^(-d/2)))/(gamma(m) * 
            gamma(m - d/2 + 1))
    }
    else {
        Amd <- (gamma(d/2 - m) * (2^(-2 * m)) * (pi^(-d/2)))/gamma(m)
    }
    Amd
}
back to top