<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_uti</author_name>
  <author_url>https://blog.hatena.ne.jp/y_uti/</author_url>
  <blog_title>y_uti のブログ</blog_title>
  <blog_url>https://y-uti.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>任意の距離関数を用いて k-means 法によるクラスタリングを行うプログラムを作成しました。コードは以下のとおりです。MATLAB で実装しました。fminunc 関数を利用しているため、実行には MATLAB 本体のほかに Optimization Toolbox が必要です。 function [idx, C] = mykmeans(X, k, distance) % データ数 (X は n 行 p 列の行列。n 個の p 次元データを表す) n = size(X, 1); % データからランダムに k 個を選択する方法でセントロイドを初期化する C = X(randperm(n), :…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy-uti.hatenablog.jp%2Fentry%2F2015%2F09%2F13%2F174307&quot; title=&quot;任意の距離関数で k-means 法を実行する - y_uti のブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/y/y_uti/20150913/20150913164921.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-13 17:43:07</published>
  <title>任意の距離関数で k-means 法を実行する</title>
  <type>rich</type>
  <url>https://y-uti.hatenablog.jp/entry/2015/09/13/174307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
