【发布时间】:2021-02-15 15:55:19
【问题描述】:
我目前正在尝试在测量中估计 Voigt 配置文件。我想为参数'amplitude'设置一个上限,其中上限的值由另一个参数gamma决定:
Voigt_dBm = Model(V_dBm) #V_dBm is defined as a Voigt profile
params = Voigt_dBm.make_params(gamma=5, alpha=720, ...
amplitude=2e-8, offset=1e-9, max_lin=max(y_lin)) #Values for parameters are appropriate for the data
params.add('max_lin', vary=False) #This value comes from the data and should be kept static
params.add('amplitude',max=max_lin**(gamma*2)**2) <--- This is where I want to add the gamma-dependt limit
result = Voigt_dBm.fit(y,params,x=f,nan_policy='propagate')
【问题讨论】:
-
您好 Niklas,欢迎您!您是否会添加结果结果 :D 以及它如何不符合您的期望?
标签: lmfit