A statistical physics approach to nearest neighbor distibution for individuals of finite size