<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada/</author_url>
  <blog_title>ryamadaのコンピュータ・数学メモ</blog_title>
  <blog_url>https://ryamada.hatenadiary.jp/</blog_url>
  <categories>
    <anon>平均</anon>
    <anon>一般化平均</anon>
    <anon>複素数</anon>
  </categories>
  <description>負の数の平方根なども取りたいので複素数で考える # 複素数にも対応している my.mean &lt;- function(x,p){ (sum(x^p)/length(x))^(1/p) } # 実数列は複素数列に直す x &lt;- rnorm(1000,0,1) x &lt;- complex(real=x,imaginary=rep(0,length(x))) ps &lt;- seq(from=-10,to=10,length=1000) y &lt;- rep(0,length(ps)) for(i in 1:length(y)){ y[i] &lt;- my.mean(x,ps[i]) } # 複素平面上に打点 pl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada.hatenadiary.jp%2Fentry%2F20131008%2F1381180867&quot; title=&quot;一般化平均 - ryamadaのコンピュータ・数学メモ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/r/ryamada/20131008/20131008062040.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-08 06:21:07</published>
  <title>一般化平均</title>
  <type>rich</type>
  <url>https://ryamada.hatenadiary.jp/entry/20131008/1381180867</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
