mirror of
https://github.com/vale981/bandfit
synced 2025-03-04 17:11:38 -05:00
document lorentzian
This commit is contained in:
parent
4225bd2181
commit
d89f11ae35
1 changed files with 6 additions and 2 deletions
|
@ -40,8 +40,12 @@ def lorentzian(x, x0, γ):
|
|||
return γ**2 / ((x - x0) ** 2 + γ**2)
|
||||
|
||||
|
||||
def double_lorentzian(x, x0_1, x0_2, γ, r=1):
|
||||
return lorentzian(x, x0_1, γ) + r * lorentzian(x, x0_2, γ)
|
||||
def double_lorentzian(x, x0_1, x0_2, γ, a, b):
|
||||
"""
|
||||
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(
|
||||
|
|
Loading…
Add table
Reference in a new issue