A modified Ripley′s index