谷歌图表直方图的公式 [英] Formula for Google Charts histogram

查看:41
本文介绍了谷歌图表直方图的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Charts 使用什么公式来构建直方图?例如,它是否使用 Sturge 规则?多恩法则?斯科特的规则?等.是否有任何关于它如何构建默认 bin 大小、最小值和最大值的文档?

What formula does Google Charts use to construct its histogram? For example, does it use Sturge's rule? Doane's rule? Scott's rule? etc. Is there any documentation on how it constructs it default bin size, min, and max?

这是直方图 Google 图表页面.

Here is a link to the Histogram page for Google Charts.

Google Charts 会自动为您选择 bin 数量.所有 bin 的宽度相等,高度与 bin 中数据点的数量成正比.在其他方面,直方图类似于柱状图.

Google Charts automatically chooses the number of bins for you. All bins are equal width and have a height proportional to the number of data points in the bin. In other respects, histograms are similar to column charts.

推荐答案

检查 2018 年 10 月 1 日发布的说明.

使用滴答生成算法生成桶.使用新的 histogram.numBucketsRule 选项计算桶的默认数量.可能的值为 'sqrt''sturges''rice'.请参阅直方图:箱数和宽度

Generate buckets using tick generation algorithm. Default number of buckets is computed using a new histogram.numBucketsRule option. Possible values are 'sqrt', 'sturges', and 'rice'. See Histogram: Number of bins and width

这篇关于谷歌图表直方图的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆