在博客園設置--->頁首html添加代碼
<script src="http://latex.codecogs.com/latex.js" type="text/javascript"></script>
舉例輸入:
$y = \theta^{T}x + \theta^{T}x^{2}$
$\sum_{i=1}^{n=m}{\theta^{T}X^{(i)}}$
顯示為:
$y = \theta^{T}x + \theta^{T}x^{2}$
$\sum_{i=1}^{n=m}{\theta^{T}X^{(i)}}$
用 $ μ^1, μ^2, ..., μ^k $ 來表示聚類中心,
用 $ c^{(1)}, c^{(2)}, ..., c^{(k)} $ 來存儲與 $ μ^1, μ^2, ..., μ^k $ 第個實例數據最近的聚類中心的索引,K-均值算法的偽代碼如下:
公式在線編輯器: https://www.codecogs.com/latex/eqneditor.php