Used within minimum density projection pursuit. Not intended for independent use outside of other functions.