R/compute.agdex.stat.R

Defines functions compute.agdex.stat

compute.agdex.stat <-
function(dstatA,dstatB)

{
   x <- dstatA
   y <- dstatB
   cos.stat <- mean(x*y)/sqrt(mean(x^2)*mean(y^2))
   prop.stat <- mean(sign(x)*sign(y))
   return(c(cos.stat=cos.stat,prop.stat=prop.stat))
}

Try the AGDEX package in your browser

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

AGDEX documentation built on Nov. 8, 2020, 8:32 p.m.