问题描述
嗨,我正在通过曲线拟合拟合数据:
mu100,sigma100 = curve_fit(norm.cdf,data_framie_file_101_comps_10um['stimn'],data_framie_file_101_comps_10um['soma'],p0=[0,1])[0]
当我绘制这个时,我得到
如何从曲线拟合中提取 x 值,例如尖峰概率等于 0.9?
谢谢
解决方法
我相信您想要的是使用拟合参数 norm.cdf
和 {{1} 计算 norm.ppf
的倒数,即 mu100
}.所以,sigma100
。