R/ddst.uniform.Nk.R

Defines functions `ddst.uniform.Nk`

`ddst.uniform.Nk` <-
function(x, base = ddst.base.legendre, Dmax = 10) {
  n = length(x)
  maxN = max(min(Dmax, n-2, 20),1)
  coord = numeric(maxN)
  for (j in 1:maxN) 
   coord[j] = ddst.phi(x, j, base)
  coord= cumsum(coord^2*n)
}

Try the ddst package in your browser

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

ddst documentation built on May 2, 2019, 7:57 a.m.