FIG. . Schematic of f (ε) and visualization of the partially occupied window. Blue color corresponds to fully occupied and red corresponds to fully unoccupied. The gradient between red and blue represents the partially occupied states. The function used to determine this smooth transition between occupied and unoccupied can be chosen as Eq. 4 inside the code.