R/util.R

Defines functions pow comp qnt

qnt <-function(x) rank(x)/length(x)

comp<-function(x) {
  res=apply(x,2,qnt)
  apply(res,1,mean)}

pow<-function(a,b) a^b
flr/FLife documentation built on March 29, 2024, 5:50 p.m.