【问题标题】:How can I convert a histogram (2D) into 2 pdf in zfit?如何在 zfit 中将直方图 (2D) 转换为 2 pdf?
【发布时间】:2021-08-13 06:26:11
【问题描述】:

我正在尝试在 zfit 的帮助下进行一些二维光谱拟合。 我要使用的 pdf 来自 ROOT TH2D。 有什么方法可以直接在zfit中将输入的Th2D转成2D pdf?

非常感谢!

【问题讨论】:

    标签: zfit


    【解决方案1】:

    目前没有直接的方法,只有there is Work In Progress 可以实现分箱拟合。

    一般来说,我建议在 Python 中使用hist,因为它可以在未来直接与 zfit 一起使用。

    现在实现这一点的一种方法是使用 hists density,在 zfit 中创建自定义 PDF (such as here) 并设置 zfit.run.set_graph_mode(False)zfit.run.set_autograd_mode(False)

    这有帮助吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-16
      • 2020-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多