tightbinder.observables.dos_kpm#
- dos_kpm(system, energy=None, npoints=200, nmoments=30, r=10)[source]#
Routine to compute the density of states using the Kernel Polynomial Method. Intended to be used with supercells and k=0.
- Parameters:
system (
System) – System whose density of states we want to compute.energy (
float) – Value of energy where we want to obtain the DoS. If None, DoS is computed for all energy window of spectrum.npoints (
int) – Number of energy points to consider if computing full DoS. Defaults to 200.nmoments (
int) – Number of moments to use in the KPM expansion. Defaults to 30.r (
int) – Number of samples to use in the stochastic evaluation of the KPM traces. Defaults to 10.
- Return type:
- Returns: