Skip to content

integration1D_over_a_cutoff

esta.general.integration1D_over_a_cutoff

get_integrated_electrons(y, x, x_cutoff=0.01)

integrate the 1d curve (e.g. dos ) over an energy range with some energy cutoff (usuall Fermi energy) to get no of eletrons contained in that curve

input: array: y array: x, of same length as that of y float: x_cutoff, default = 1e-2

output: float; electron; electron count wrt cutoff over x range (NOTE: it is fractional) float; electron_all; electron count over all x range