d3.js中的核密度平滑 [英] Kernel density smoothing in d3.js

查看:451
本文介绍了d3.js中的核密度平滑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图叠加两个平滑的直方图,以在两个相关分布中显示重叠。

p>

我想知道d3.js中内核密度或其他平滑的可用性。一年前似乎有一些活动的主题,但我不能在主线d3.js代码中找到该函数。 (关于核密度估计的维基百科条目建议d3的science.stats函数,它不在我的d3.v2.js下载)



直方图布局与密度选项?

解决方案

您要查找的示例位于 kde资料夹

下面是它的外观:


Apologies as I am an expert in neither statistics nor d3.js.

I am trying to overlay two smoothed histograms to show overlap in two related distributions.

I am wondering about the availability of kernel density or other smoothing in d3.js. There seemed to be some activity on the topic about a year ago, but I am not able to find the function in the mainline d3.js code. (The Wikipedia entry on kernel density estimation suggests d3's "science.stats" functions, which are not in my d3.v2.js download.)

Was it incorporated into the histogram layout with the density option? Or is it not available currently?

解决方案

The example you are looking for is in the kde folder of the science.js git repository, which includes the kernel estimator.

Here's what it looks like:

这篇关于d3.js中的核密度平滑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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