document lorentzian

This commit is contained in:
Valentin Boettcher 2023-03-22 13:47:25 -04:00
parent 4225bd2181
commit d89f11ae35
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -40,8 +40,12 @@ def lorentzian(x, x0, γ):
return γ**2 / ((x - x0) ** 2 + γ**2) return γ**2 / ((x - x0) ** 2 + γ**2)
def double_lorentzian(x, x0_1, x0_2, γ, r=1): def double_lorentzian(x, x0_1, x0_2, γ, a, b):
return lorentzian(x, x0_1, γ) + r * lorentzian(x, x0_2, γ) """
A sum of two lorentzians of equal width cerntered around
``x0_1,x0_2`` with width ``γ`` peak heights ``a, b``
"""
return a * lorentzian(x, x0_1, γ) + b * lorentzian(x, x0_2, γ)
def detect_bands_fixed_k( def detect_bands_fixed_k(