{"id":2106,"date":"2019-09-01T19:07:14","date_gmt":"2019-09-01T10:07:14","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=2106"},"modified":"2020-11-22T23:27:33","modified_gmt":"2020-11-22T14:27:33","slug":"%e5%ba%a6%e6%95%b0%e5%88%86%e5%b8%83%e3%81%a8%e3%83%92%e3%82%b9%e3%83%88%e3%82%b0%e3%83%a9%e3%83%a0","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/2106","title":{"rendered":"\u5ea6\u6570\u5206\u5e03\u3068\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0"},"content":{"rendered":"<p><script async src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mathjax\/2.7.0\/MathJax.js?config=TeX-AMS_CHTML\"><\/script><\/p>\n<p>\u305d\u308c\u3067\u306f\u3053\u306e\u30da\u30fc\u30b8\u304b\u3089\u3044\u3088\u3044\u3088\u7d71\u8a08\u5206\u6790\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u307e\u305a\u3001\u30c7\u30fc\u30bf\u304c\u3069\u3046\u3044\u3063\u305f\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u304b\u3001\u5206\u5e03\u306e\u6709\u308a\u69d8\u3092\u8abf\u3079\u308b\u305f\u3081\u306b\u3001\u5ea6\u6570\u5206\u5e03\u8868\u3068\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u5ea6\u6570\u5206\u5e03<\/h2>\n<p>\u5ea6\u6570\u5206\u5e03\u8868\u3068\u306f\u3001\u30c7\u30fc\u30bf\u306e\u533a\u9593\u3054\u3068\u306e\u6570\u3092\u96c6\u8a08\u3057\u305f\u8868\u3067\u3059\u30021\u3064\u306e\u533a\u9593\u3092\u968e\u7d1a\u3068\u547c\u3073\u307e\u3059\u304c\u3001bin\u3068\u547c\u3076\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u524d\u56de\u4f7f\u7528\u3057\u305firis\u30c7\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3044\u306a\u3044\u65b9\u306f\u4ee5\u4e0b\u304b\u3089csv\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/raw.githubusercontent.com\/pandas-dev\/pandas\/master\/pandas\/tests\/io\/data\/csv\/iris.csv\">https:\/\/raw.githubusercontent.com\/pandas-dev\/pandas\/master\/pandas\/tests\/io\/data\/csv\/iris.csv<\/a><\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport pandas as pd\r\nimport numpy as np\r\n\r\n# \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\r\ndf = pd.read_csv('iris.csv')\r\n\r\n# SepalLength\u5217\u3092ndarray\u306b\u5909\u63db\r\ndata = np.array(df['SepalLength'])\r\n\r\n# \u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\r\nhist, bin_edges = np.histogram(data, bins=10)\r\n\r\n<\/pre>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u5f8c\u307b\u3069\u8aac\u660e\u3057\u307e\u3059\u304c\u3001numpy\u306ehistogram\u95a2\u6570\u3067histgram\u5f62\u5f0f\u306e\u914d\u5217\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5909\u6570hist\u306b\u5404\u968e\u7d1a\u306e\u6570\u3001bin_edges\u306b\u5404\u968e\u7d1a\u306e\u7aef\u70b9\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u7aef\u70b9\u306e\u6570\u306e\u65b9\u304c\u591a\u3044\u305f\u3081\u3001bin_edges\u306e\u65b9\u304c\u914d\u5217\u306e\u8981\u7d20\u6570\u304c\u591a\u3044\u3068\u3044\u3046\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u898b\u3065\u3089\u3044\u306e\u3067DataFrame\u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002Spyder\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u5909\u6570\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3067DataFrame\u306e\u5185\u5bb9\u3092\u304d\u308c\u3044\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# \u8868\u793a\u7528\u306b\u6574\u5f62\u3059\u308b\r\nhist_df = pd.DataFrame(columns=[&quot;start&quot;,&quot;end&quot;,&quot;count&quot;])\r\nfor idx, val in enumerate(hist):\r\n    start = round(bin_edges[idx], 2)\r\n    end = round(bin_edges[idx + 1], 2)\r\n    hist_df.loc[idx] = [start, end, val]\r\n\r\n<\/pre>\n<p>hist_df\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u300210\u500b\u306e\u968e\u7d1a\u306b\u5206\u3051\u305f\u969b\u3001\u771f\u3093\u4e2d\u306e\u307b\u3046\u304c\u5ea6\u6570\u304c\u5927\u304d\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_df_hist.png\"><img loading=\"lazy\" src=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_df_hist-300x240.png\" alt=\"\" width=\"300\" height=\"240\" class=\"alignnone size-medium wp-image-2244\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_df_hist-300x240.png 300w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_df_hist-768x615.png 768w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_df_hist.png 856w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0<\/h2>\n<p>\u5148\u7a0b\u306e\u5ea6\u6570\u5206\u5e03\u8868\u306f\u968e\u7d1a\u3054\u3068\u306b\u30c7\u30fc\u30bf\u304c\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u4e00\u898b\u3057\u3066\u30c7\u30fc\u30bf\u306e\u7279\u5fb4\u3092\u898b\u51fa\u3059\u3053\u3068\u306f\u306a\u304b\u306a\u304b\u96e3\u3057\u3044\u3067\u3059\u3002\u305d\u3053\u3067\u767b\u5834\u3059\u308b\u306e\u304c\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3067\u3059\u3002\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306f\u5ea6\u6570\u5206\u5e03\u3092\u68d2\u30b0\u30e9\u30d5\u306b\u3057\u3066\u53ef\u8996\u5316\u3057\u305f\u3082\u306e\u3067\u3059\u3002matplotlib\u306ehist\u95a2\u6570\u3067\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u63cf\u753b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5f15\u6570\u306ebins\u3067\u968e\u7d1a\u6570\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport pandas as pd\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\n# \u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\r\ndf = pd.read_csv('iris.csv')\r\n\r\n# SepalLength\u5217\u3092ndarray\u306b\u5909\u63db\r\ndata = np.array(df['SepalLength'])\r\n\r\n# \u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\r\nfig = plt.figure()\r\nax = fig.add_subplot(1, 1, 1)\r\nax.hist(data, bins=10, histtype='barstacked', ec='black')\r\nplt.show()\r\n\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u968e\u7d1a\u657010\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u304c\u63cf\u753b\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_10-1.png\"><img loading=\"lazy\" src=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_10-1.png\" alt=\"\" width=\"370\" height=\"248\" class=\"alignnone size-full wp-image-2978\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_10-1.png 370w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_10-1-300x200.png 300w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/a><\/p>\n<p>\u5ea6\u6570\u5206\u5e03\u8868\u3068\u6bd4\u8f03\u3057\u3066\u4e00\u76ee\u3067\u30c7\u30fc\u30bf\u306e\u7279\u5fb4\u304c\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<h2>numpy.histgram\u3068bins<\/h2>\n<p>np.histogram\u95a2\u6570\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u5f62\u5f0f\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div class=\"c_box intitle yellow_box\"><div class=\"box_title\"><span>histogram<\/span><\/div>\nnp.histogram(a, bins=10, range=None, density=None)<br \/>\n<\/div>\n<ul>\n<li>a:\u5bfe\u8c61\u3068\u306a\u308b\u30c7\u30fc\u30bf\u914d\u5217<\/li>\n<li>bins\uff1a\u968e\u7d1a\u6570(int) or \u968e\u7d1a(list))<\/li>\n<li>density\uff1aTrue\u306e\u5834\u5408\u3001\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u9762\u7a4d\u304c1\u3068\u306a\u308b\u3088\u3046\u306b\u8abf\u6574<\/li>\n<\/ul>\n<p>bins\u306f\u5c11\u3057\u5909\u308f\u3063\u305f\u5f15\u6570\u3067\u3001\u6574\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u306e\u6570\u306e\u533a\u9593\u306b\u5206\u5272\u3057\u307e\u3059\u304c\u3001\u914d\u5217\u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u306e\u914d\u5217\u306e\u968e\u7d1a\u3068\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u5f8c\u8ff0\u306e\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u306e\u516c\u5f0f\u3067\u81ea\u52d5\u7684\u306b\u968e\u7d1a\u5206\u3051\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>plt.hist\u306f\u5185\u90e8\u7684\u306bnumpy.histgram\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067plt.hist\u3067bins\u306e\u5024\u306b\u3088\u308b\u6319\u52d5\u306e\u9055\u3044\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306f\u5f15\u6570\u306b\u914d\u52174\u301c8\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nfig = plt.figure()\r\nax = fig.add_subplot(1, 1, 1)\r\nax.hist(data, bins=[4, 5, 6, 7, 8], histtype='barstacked', ec='black')\r\n<\/pre>\n<a href=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_list-1.png\"><img loading=\"lazy\" src=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_list-1.png\" alt=\"\" width=\"368\" height=\"248\" class=\"alignnone size-full wp-image-2979\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_list-1.png 368w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_list-1-300x202.png 300w\" sizes=\"(max-width: 368px) 100vw, 368px\" \/><\/a>\n<p>density\u306f\u3001\u4e0a\u306e\u8aac\u660e\u306e\u901a\u308a\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u9762\u7a4d\u304c1\u3068\u306a\u308b\u3088\u3046\u306b\u8abf\u6574\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u5225\u30da\u30fc\u30b8\u3067\u8aac\u660e\u3057\u307e\u3059\u304c\u3001\u9023\u7d9a\u578b\u306e\u78ba\u7387\u5909\u6570\u306e\u5834\u5408\u306f\u78ba\u7387\u5bc6\u5ea6\u95a2\u6570\u306b\u8fd1\u4f3c\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nfig = plt.figure()\r\nax = fig.add_subplot(1, 1, 1)\r\nax.hist(data, bins=[4, 5, 6, 7, 8], density=True, histtype='barstacked', ec='black')\r\n<\/pre>\n<a href=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_density-1.png\"><img loading=\"lazy\" src=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_density-1.png\" alt=\"\" width=\"378\" height=\"248\" class=\"alignnone size-full wp-image-2980\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_density-1.png 378w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_density-1-300x197.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/><\/a>\n<p>\u5168\u4f53\u306e\u9762\u7a4d\u304c1\u306a\u306e\u3067\u3001SepalLength\u306e\u5024\u304c5.0\u301c6.0\u3068\u306a\u308b\u5272\u5408\uff08\u78ba\u7387\uff09\u306f\u533a\u95935\u301c6\u306e\u9762\u7a4d0.4\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u5143\u306e\u30a2\u30e4\u30e1\u306e\u82b1\u306e\u30ac\u30af\u306e\u9577\u3055\u306f\u304a\u304a\u3088\u305d40%\u306e\u78ba\u7387\u30675.0\u301c6.0\u306b\u53ce\u307e\u308b\u3068\u63a8\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u968e\u7d1a\u6570\u306e\u81ea\u52d5\u8a2d\u5b9a<\/h2>\n<p>\u968e\u7d1a\u306e\u6570\u306f\u5206\u6790\u8005\u304c\u4efb\u610f\u306b\u5b9a\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u3069\u306e\u304f\u3089\u3044\u306e\u968e\u7d1a\u5e45\u306b\u3059\u308b\u306e\u304b\u60a9\u307e\u3057\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u76ee\u5b89\u3068\u306a\u308b\u516c\u5f0f\u3068\u3057\u3066\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u306e\u516c\u5f0f\u3068\u30d5\u30ea\u30fc\u30c9\u30de\u30f3\uff1d\u30c0\u30a4\u30a2\u30b3\u30cb\u30b9\u306e\u6cd5\u5247\u306e\u516c\u5f0f\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u306e\u516c\u5f0f\u3068\u306f\u30c7\u30fc\u30bf\u306e\u500b\u6570\u304cn\u306e\u5834\u5408\u3001\u968e\u7d1a\u6570\u306f\u4e0b\u5f0f\u306ek\u3067\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\\[<br \/>\nk=1\uff0blog_2 n<br \/>\n\\]\n<p>\u30d5\u30ea\u30fc\u30c9\u30de\u30f3\uff1d\u30c0\u30a4\u30a2\u30b3\u30cb\u30b9\u306e\u6cd5\u5247\u306e\u516c\u5f0f\u3068\u306f\u3001\u30c7\u30fc\u30bfX\u306e\u500b\u6570\u304cn\u306e\u5834\u5408\u3001\u968e\u7d1a\u6570\u306f\u4e0b\u5f0f\u306ek\u3067\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\\[<br \/>\nk=2 \\times X\u306e\u56db\u5206\u4f4d\u7bc4\u56f2 \\times n^{(-1\/3)}<br \/>\n\\]\n<p>numpy\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u81ea\u529b\u3067\u8a08\u7b97\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001bins='auto'\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u306e\u516c\u5f0f\u3068\u30d5\u30ea\u30fc\u30c9\u30de\u30f3\uff1d\u30c0\u30a4\u30a2\u30b3\u30cb\u30b9\u306e\u6cd5\u5247\u306e\u516c\u5f0f\u306e\u8a08\u7b97\u7d50\u679c\u306e\u5185\u3001\u4e21\u8005\u3068\u3082\u306b0\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306f\u968e\u7d1a\u5e45\u304c\u5c0f\u3055\u3044\u307b\u3046\u304c\u81ea\u52d5\u3067\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u5148\u7a0b\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306b\u5bfe\u3057\u3001auto\u3092\u4f7f\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<a href=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_auto.png.png\"><img loading=\"lazy\" src=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_auto.png.png\" alt=\"\" width=\"373\" height=\"248\" class=\"alignnone size-full wp-image-2981\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_auto.png.png 373w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2019\/09\/iris_hist_auto.png-300x200.png 300w\" sizes=\"(max-width: 373px) 100vw, 373px\" \/><\/a>\n<p>\u81ea\u52d5\u7684\u306b\u968e\u7d1a\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30c7\u30fc\u30bf\u3092\u4fef\u77b0\u3059\u308b\u5834\u5408\u306b\u306f\u4f7f\u3044\u3084\u3059\u3044\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u306e\u516c\u5f0f\u3067\u3059\u304c\u3001\u30d7\u30ec\u30bc\u30f3\u7b49\u3067\u4eba\u306b\u898b\u305b\u308b\u5834\u5408\u306f\u4eba\u9593\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u5207\u308a\u306e\u826f\u3044\u6570\u5b57\u3067\u533a\u5207\u3063\u305f\u307b\u3046\u304c\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><font color=\"red\" size=\"2\">\u5f53\u521dR\u306e\u4ed5\u69d8\u3068\u6df7\u540c\u3057\u3066\u304a\u308a\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u304c\u9069\u7528\u3055\u308c\u308b\u3068\u8a18\u8ff0\u3057\u3066\u304a\u308a\u307e\u3057\u305f\u304c\u8aa4\u308a\u3067\u3059\u3002\u4e0a\u8ff0\u306e\u901a\u308a\u30b9\u30bf\u30fc\u30b8\u30a7\u30b9\u304c\u9069\u7528\u3055\u308c\u308b\u5834\u5408\u3068\u30d5\u30ea\u30fc\u30c9\u30de\u30f3\uff1d\u30c0\u30a4\u30a2\u30b3\u30cb\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u3042\u3068\u3001\u968e\u7d1a\u6570\u3067\u306f\u306a\u304f\u968e\u7d1a\u5e45\u3067\u3057\u305f\u3002Numpy\u306ehistgram.py\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u5408\u308f\u305b\u3066\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/font><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nHistogram bin estimator that uses the minimum width of the Freedman-Diaconis and Sturges estimators if the FD bandwidth is non zero and the Sturges estimator if the FD bandwidth is 0.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u308c\u3067\u306f\u3053\u306e\u30da\u30fc\u30b8\u304b\u3089\u3044\u3088\u3044\u3088\u7d71\u8a08\u5206\u6790\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u307e\u305a\u3001\u30c7\u30fc\u30bf\u304c\u3069\u3046\u3044\u3063\u305f\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u304b\u3001\u5206\u5e03\u306e\u6709\u308a\u69d8\u3092\u8abf\u3079\u308b\u305f\u3081\u306b\u3001\u5ea6\u6570\u5206\u5e03\u8868\u3068\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002 \u5ea6\u6570\u5206\u5e03 \u5ea6\u6570\u5206\u5e03\u8868\u3068\u306f\u3001\u30c7\u30fc\u30bf\u306e...<\/p>\n","protected":false},"author":1,"featured_media":2983,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,153],"tags":[155,191,170,192,189],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2106"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=2106"}],"version-history":[{"count":26,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2106\/revisions"}],"predecessor-version":[{"id":3066,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2106\/revisions\/3066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/2983"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=2106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=2106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=2106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}