Wrapper representing gt distance function