码迷,mamicode.com
首页 > 其他好文 > 详细

PIC2, Histograms

时间:2014-10-21 16:57:13      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   sp   on   art   cti   ad   bs   

As a first guess,you can start with Scott’s rule for the bin width

w = 3.5σ/ 3√n,

where σ is the standard deviation for the entire data set and n is the number of points.

This rule assumes that the data follows a Gaussian distribution;

otherwise, it is likely to give a bin width that is too wide.

See the end of this chapter for more information on the standard deviation

直方图刻度的值估计,前提是高斯分布。

 

The other parameter that we need to fix (whether we realize it or not) is the alignment of the bins on the x axis.

Let’s say we fixed the width of the bins at 1. Where do we now place the first bin?

We could put it flush left, so that its left edge is at 0, or we could center it at 0.

In fact, we can move all bins by half a bin width in either direction.

第一个bin放在哪里?

 

17页

PIC2, Histograms

标签:io   ar   for   sp   on   art   cti   ad   bs   

原文地址:http://www.cnblogs.com/hluo/p/4040564.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!