gpt4 book ai didi

python - numpy.histogramdd 使用什么规则来计算 bin 数量?

转载 作者:行者123 更新时间:2023-12-01 05:02:48 29 4
gpt4 key购买 nike

我正在使用numpy.histogram2d生成二维直方图,而不传递(可选)bins 参数的值,这意味着 numpy 会自动获取它。据我所知,该函数基于 numpy.histogramdd .

我的问题是:当我不传递 bins 参数时,该函数使用什么规则来计算返回的直方图中使用的 bin 数量?

我看了一下the code对于 histogramdd 函数,但无法真正弄清楚。

最佳答案

查看 histogramdd 的代码,当未给出参数时,它只是使用函数定义中的参数 bins=10

来自您的链接:

def histogramdd(sample, bins=10, range=None, normed=False, weights=None):

关于python - numpy.histogramdd 使用什么规则来计算 bin 数量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25702241/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com