Development of static correlation functional using electron distribution on the energy coordinate