NRepeat function

Near Repeat calculator using the Knox test