Kenv.tor1 function

Modified envelope of K12hat from random toroidal shifts of two point patterns