R/pafF.R

Defines functions pafF

Documented in pafF

# Polarization index, Duclos et al. (2004) page 16
pafF <- function(y, a, ncores = 1) {
  ## y is the outcome of the aldmck function
  ## a is the a value
  return(pafF_helper(Rfast::Sort(y, parallel = (ncores > 1)),
                     a, ncores)) ## the ys must be sorted
}

Try the DER package in your browser

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

DER documentation built on Nov. 13, 2025, 1:07 a.m.