<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>developingskills1110</author_name>
  <author_url>https://blog.hatena.ne.jp/developingskills1110/</author_url>
  <blog_title>studies</blog_title>
  <blog_url>https://studies.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>haskell</anon>
    <anon>perl6</anon>
  </categories>
  <description>python。 最後はnumpyの内積（ドット積）を使っている（ずるい？） &gt;&gt;&gt; weight = [ 0.22, 0.14, 0.04, 0.12, 0.22, 0.26 ] &gt;&gt;&gt; record = [ 64, 51, 132, 24, 19, 11 ] &gt;&gt;&gt; sum( a * x for (a, x) in zip(weight, record) ) 36.42 &gt;&gt;&gt; sum(map(lambda a, x: a * x, weight, record)) 36.42 &gt;&gt;&gt; import operator as op &gt;&gt;&gt; sum(map(op.mul, weight, rec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstudies.hatenablog.com%2Fentry%2F2017%2F03%2F18%2F103909&quot; title=&quot;pythonとhaskell, perl6で加重平均 - studies&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-18 10:39:09</published>
  <title>pythonとhaskell, perl6で加重平均</title>
  <type>rich</type>
  <url>https://studies.hatenablog.com/entry/2017/03/18/103909</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
