bw代表带宽bandwidth,kernel是核函数,"rect"应该就是均匀分布的那种,参考:
http://en.wikipedia.org/wiki/Kernel_density_estimation
http://en.wikipedia.org/wiki/Kernel_(statistics)
你要仔细思考一下kernel density estimation中那个求和的式子
是不是所有的xi都参与进来了("rect"的情况下显然不是),再结合h和N以及加和的形式想清楚密度取值的范围