radtools.PDOS.normalize#
method
- PDOS.normalize(zeros_to_none=False)[source]#
Normalize values of PDOS to 1 for each k and energy point.
If \(x_i(E, k)\) is PDOS of the projector \(i\), then after this function does the following:
\[x_i(E, k) \rightarrow \dfrac{x_i(E, k)}{\sum_{j=0}^{n} x_j(E, k)}\]where \(n\) is the total number of projectors. Those sums are computed individually for spin-up and spin-down in the spin-polarized case.
- Parameters:
- zeros_to_nonebool, default False
If True, then the values of PDOS and LDOS > 1e-8 will be replaced with
None.
See also
normalizedReturns new object.
Notes
It modifies the instance on which called.