freealg.AlgebraicForm.density#
- AlgebraicForm.density(x=None, eta=0.0002, ac_only=False, plot=False, latex=False, save=False)#
Evaluate spectral density.
- Parameters:
- xnumpy.array, default=None
Positions where density to be evaluated at. If None, an interval slightly larger than the support interval will be used.
- etafloat, default=2e-4
A small number to be used for approximating the local behavior of atom with a mollifier of scale
eta.- ac_onlybool, default=True
If True, it returns the absolutely-continuous part of density.
- plotbool, default=False
If True, density is plotted.
- latexbool, default=False
If True, the plot is rendered using LaTeX. This option is relevant only if
plot=True.- savebool, default=False
If not False, the plot is saved. If a string is given, it is assumed to the save filename (with the file extension). This option is relevant only if
plot=True.
- Returns:
- rhonumpy.array
Density at locations x.
Examples
>>> from freealg import FreeForm