triqs.dos.dos.DOSFromFunction
- class triqs.dos.dos.DOSFromFunction(function, x_min, x_max, n_pts=100, name='')[source]
Bases:
DOSDOSconstructed by sampling a callable \(\rho(\epsilon)\).Evaluates
functionon an equispaced 1D mesh ofn_ptspoints betweenx_minandx_maxand stores the result as aDOS. The mesh can be re-sampled at runtime to refine precision –HilbertTransform.__call__()exploits this via itsn_points_integralandtest_convergencearguments.- Parameters:
- functioncallable
Function \(\epsilon \mapsto \rho(\epsilon)\). The return value must be convertible to a 1D numpy array.
- x_minfloat
Lower bound of the mesh (domain of
function).- x_maxfloat
Upper bound of the mesh.
- n_ptsint, optional
Number of points in the mesh. Default 100.
- namestr, optional
Name of the DOS. Default
''.
Attributes
function
(callable) The callable supplied at construction.
x_min
(float) Lower mesh bound.
x_max
(float) Upper mesh bound.