如何在博客园插入数学公式

在博客园设置--->页首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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2019-02-08 13:54  douzujun  阅读(1672)  评论(5编辑  收藏  举报