{"type":"rich","blog_url":"https://kj-ki.hatenablog.com/","provider_name":"Hatena Blog","published":"2008-08-20 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkj-ki.hatenablog.com%2Fentry%2F20080820%2Fp1\" title=\"Ruby\u3067\u66f8\u304f\u30d4\u30a2\u30bd\u30f3\u76f8\u95a2 - kj-ki\u2019s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/kj-ki/","categories":["Ruby"],"author_name":"kj-ki","blog_title":"kj-ki\u2019s blog","height":"190","provider_url":"https://hatena.blog","description":"\u524d\u56de\u306e\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u8ddd\u96e2\u306b\u7d9a\u3044\u3066\u300c\u30d4\u30a2\u30bd\u30f3\u76f8\u95a2\u306b\u3088\u308b\u30b9\u30b3\u30a2\u300d\u3067\u3059\uff0e \u30d4\u30a2\u30bd\u30f3\u76f8\u95a2\u306e\u8a08\u7b97 \u6b63\u3057\u304f\u306f\uff0c\u30d4\u30a2\u30bd\u30f3\u306e\u7a4d\u7387\u76f8\u95a2\u4fc2\u6570\u3068\u3044\u3046\u3089\u3057\u3044\u3067\u3059\uff0e \u5dfb\u672b\u306ep.342\u306b\u3042\u308b\u5b9a\u7fa9\u3092\u305d\u306e\u307e\u307e\u5b9f\u88c5\u3057\u307e\u3057\u305f\uff0e sum_xy(x*y\u306e\u90e8\u5206\u548c)\u3092\u6c42\u3081\u308b\u306e\u306b\uff0czip\u3067\u66f8\u3044\u3066\u3042\u308b\u3068\u3053\u308d\u304c\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e \u306a\u304a\uff0csqrt\u3092\u4f7f\u3046\u306b\u306fMath\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\uff0e \u304a\u5fd8\u308c\u306a\u304f\uff0e require 'mathn' include Math module My class Recommender # # \u4efb\u610f\u306e2\u4eba\u306e\u30d4\u30a2\u30bd\u30f3\u76f8\u95a2\u3092\u7b97\u51fa\u3059\u308b # def get_pearson_correlation(critics\u2026","width":"100%","title":"Ruby\u3067\u66f8\u304f\u30d4\u30a2\u30bd\u30f3\u76f8\u95a2","url":"https://kj-ki.hatenablog.com/entry/20080820/p1","version":"1.0","image_url":null}