Nearest neighbor density functional estimation based on inverse Laplace transform