R/MAphi.R

Defines functions MAphi

MAphi <-
function(ref, k)
{
    Mat = matrix(nrow = ref, ncol = ref)
    for(i in 1:ref)
    {
        for(j in 1:ref)
        {
            Mat[i,j] = min(i,j)/ref
        }
    }
    return(k * Mat)
}

Try the ftsa package in your browser

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

ftsa documentation built on March 31, 2026, 9:07 a.m.