当前位置: 首页 > news >正文

同ip网站做排名seo创建好网站如何把浏览

同ip网站做排名seo,创建好网站如何把浏览,网站设计框架,六安市网站制作目录 一个简单的例子#xff1a; 样式一#xff08;algorithm2e算法#xff09;#xff1a; 样例二#xff08;algorithm2e算法#xff09;#xff1a; 样式三#xff08;algorithm算法#xff09;#xff1a; 下面详细讲解algorithm2e算法的使用 1、宏包参数的…目录 一个简单的例子 样式一algorithm2e算法 样例二algorithm2e算法 样式三algorithm算法 下面详细讲解algorithm2e算法的使用 1、宏包参数的使用 2、修改Algorithm为中文 3、修改Input、Output为中文 4、自定义算法编号 5、添加算法目录 总代码 一个简单的例子 我们使用的是Overleaf, 在线LaTeX编辑器进行编写在项目的菜单中选择XeLaTeX编译器。 样式一algorithm2e算法 \def\SetClass{article} \documentclass{\SetClass} \usepackage[top2cm, bottom2cm, left2.5cm, right2.5cm]{geometry} %定义页边距 \usepackage[linesnumbered,ruled]{algorithm2e} % \documentclass[1000pt]{article} \usepackage{amsmath} %数学公式 \usepackage[UTF8]{ctex} %输出中文 \renewcommand{\thealgocf}{2} %这里用来定义算法1算法2等\begin{document} \IncMargin{1em} % 页边距 \begin{algorithm}\SetAlgoLined %显示end\caption{Mobility Tree Construction}\SetKwInOut{Input}{Input}\SetKwInOut{Output}{Output}% 设置输入\Input{}% $$括起来表示这是一个数学表达式,会使用英文斜体表示. \\表示换行$X n \times gene$, expression matrix for $n$ sample with $g$ genes \\% _表示下缀$X_i$ expression matrix of sample \\% \delta是latex输入希腊字母δ的方式$\delta$: probability \\$f_{mlp}$: the model \\% 定义函数内容\SetKwFunction{MyFuns} {MyFuns}\SetKwProg{Fn}{Function}{:}{}\Fn{\MyFuns{$X$, $X_i$, $X_{func}$, $\delta$}} {setVariables($X$, $Score$) \\% 添加注释\tcp{\emph{This is an annotation}}\label{cmt} \\Train a network, $f_{\theta,0}$, using the samples from $D_L$ \\% for循环\For{$i$ in $1 : MaxIterations$}{Pseudo-label $D_U$ using $f_{\theta, i-1}$ \\$D_{selected} \leftarrow $ Select pseudo-labels using UPS \\$\tilde{D} \leftarrow D_L \bigcup D_{selected}$ \\Initiallize new network $f_{\theta, i}$ \\Train $f_{\theta, i}$ using the samples from $\tilde{D}$. \\$f_{\theta} \leftarrow f_{\theta, i}$ \\}\KwRet $f_{\theta}$} \end{algorithm} \DecMargin{1em} % 页边距 \end{document} 样例二algorithm2e算法 \def\SetClass{article} \documentclass{\SetClass} \usepackage[top2cm, bottom2cm, left2.5cm, right2.5cm]{geometry} %定义页边距 \usepackage[linesnumbered,ruled]{algorithm2e} % \documentclass[1000pt]{article} \usepackage{amsmath} %数学公式 \usepackage[UTF8]{ctex} %输出中文 \renewcommand{\thealgocf}{2} %这里用来定义算法1算法2等\begin{document} \begin{algorithm}[H]\SetAlgoLined %显示end\caption{algorithm caption}%算法名字\KwIn{input parameters A, B, C}%输入参数\KwOut{output result}%输出some description\; %\;用于换行\For{condition}{only if\;\If{condition}{1\;}}\While{not at end of this document}{if and else\;\eIf{condition}{1\;}{2\;}}\ForEach{condition}{\If{condition}{1\;}}return \end{algorithm} \end{document} 样式三algorithm算法 %在菜单中编译器选择XeLaTex \documentclass[11pt]{ctexart} \usepackage[top2cm, bottom2cm, left2.5cm, right2.5cm]{geometry} %定义页边距 \usepackage{algorithm} \usepackage{algorithmicx} \usepackage{algpseudocode} \usepackage{amsmath} %数学公式 \usepackage[UTF8]{ctex} %输出中文 \floatname{algorithm}{Algorithm} %算法 \renewcommand{\algorithmicrequire}{\textbf{Input:}} %输入 \renewcommand{\algorithmicensure}{\textbf{Output:}} %输出\begin{document} \renewcommand{\thealgorithm}{2} %这里用来定义算法1算法2等\begin{algorithm}\caption{K-Means聚类盲均衡算法} %标题\begin{algorithmic}[1] %每行显示行号1表示每1行进行显示\Require 输入样本集$D$ \{$x_1,x_2,...,x_N$\},分簇数$K2$,最大迭代次数为$M$,从分簇样本中随机选取两点\{$u_1$,$u_2$\}作为初始质心\Ensure 样本分簇质心\{$C_1$,$C_2$\}\For{$m 1 \to M$} //$m$表示迭代次数\State $C_1 \Leftarrow \emptyset, C_2 \Leftarrow \emptyset$ //初始化各簇\For{$i 1,2,...,N$} //$i$表示样本集编号\State $d_{i1} \Leftarrow {\Vert x_i-u_1 \Vert}^2$, $d_{i2} \Leftarrow {\Vert x_i-u_2 \Vert}^2$ //计算$x_i$到两质心的欧式距离\If {$d_{i1} \leq d_{i2}$}\State $C_1 \Leftarrow C_1 \cup \{x_i\}$ //将$x_i$划分到相应的簇\Else\State $C_2 \Leftarrow C_2 \cup \{x_i\}$ %有时候需要用\来转译\EndIf\EndFor\State $\tilde{u_1} \Leftarrow \frac{1}{\vert C_1 \vert}\sum_{x \in C_1} x$, $\tilde{u_2} \Leftarrow \frac{1}{\vert C_2 \vert}\sum_{x \in C_2} x$ //重新计算各簇质心\If{$(\tilde{u_1} u_1) (\tilde{u_2} u_2$} //各簇质心未改变跳出循环\State \textbf{break} from line 3 %\textbf为加粗\Else\State $u_1 \Leftarrow \tilde{u_1}, u_2 \Leftarrow \tilde{u_2}$ //更新各簇质心\EndIf\EndFor\State \Return $C_1, C_2$ //输出结果\end{algorithmic}\end{algorithm} \end{document} 下面详细讲解algorithm2e算法的使用 1、宏包参数的使用 这句代码表示引用宏包algorithm2e \usepackage[linesnumbered,ruled,vlined]{algorithm2e} 下面是它的一些常用参数介绍 参数 作用 linesnumbered 显示行号 ruled 标题显示在上方不加就默认显示在下方 vlined 代码段中用线连接 boxed 将算法插入在一个盒子里 基本语法 代码 作用 \; 行末添加行号并自动换行 \caption{算法名称} 插入算法名称 \KwData输入信息} 显示“Data输入信息” \KwIn{输入信息} 显示“Input输入信息” \KwOut{输出信息} 显示“Output输出信息” \KwResult{输入信息} 显示“Result输出信息” \For{条件}{循环语句} For循环 \If{条件}{肯定语句} If条件判断 \eIf{条件}{肯定语句}{否定语句} If-else判断语句 \While{条件}{肯定语句} While循环 \ForEach{条件}{执行语句} ForEach遍历 \tcc{注释} 显示“\* 注释 *\” \tcp{注释} 显示“\\注释” \SetAlgoLined 显示“每个结尾的end” \LinesNumbered 显示行号 2、修改Algorithm为中文 使用以下语句可将默认的“Algorithm”修改为中文“算法” \renewcommand{\algorithmcfname}{算法} 3、修改Input、Output为中文 \SetKwInOut{KwIn}{输入} \SetKwInOut{KwOut}{输出} 4、自定义算法编号 \renewcommand{\thealgocf}{3-1} 5、添加算法目录 \renewcommand{\listalgorithmcfname}{算\ 法\ 目\ 录} % 生成算法目录命令 \listofalgorithms 总代码 \documentclass{ctexart} \usepackage[ruled,vlined]{algorithm2e}\begin{document}\renewcommand{\listalgorithmcfname}{算\ 法\ 目\ 录} % 生成算法目录命令 \listofalgorithms\renewcommand{\algorithmcfname}{算法} \SetKwInOut{KwIn}{输入} \SetKwInOut{KwOut}{输出}\begin{algorithm}\renewcommand{\thealgocf}{3-1}\SetAlgoLined %显示end\caption{algorithm caption}%算法名字\KwIn{input parameters A, B, C}%输入参数\KwOut{output result}%输出some description\; %\;用于换行\For{condition}{only if\;\If{condition}{1\;}}return \end{algorithm} \begin{algorithm}\renewcommand{\thealgocf}{3-2}\SetAlgoLined %显示end\caption{algorithm caption}%算法名字\KwIn{input parameters A, B, C}%输入参数\KwOut{output result}%输出some description\; %\;用于换行\For{condition}{only if\;\If{condition}{1\;}}return \end{algorithm} \end{document}
http://www.yutouwan.com/news/384556/

相关文章:

  • 网站做树状结构有什么作用哪些域名商可以自助wordpress
  • 广州网站建设 讯度网络贵州省建设银行网站
  • 网站开发怎么人员组织推广引流网站
  • 先做网站还是先域名备案看广告得收益的app
  • 建公司网站需要自己有系统吗网页设计期末考试作品
  • 黑河哈尔滨网站建设wordpress登陆网址
  • 青岛一品网站建设wordpress 突然502
  • 网站做百度推广网站存在的问题
  • 住房城乡建设部办公厅网站PHP做网站的核心是什么
  • 什么是响应网站设计东营抖音代运营
  • 烟台专业的网站建站公司教你如何做网站
  • 网站营销案例展示查询网站服务器提供商
  • 整站优化关键词推广品牌vi形象设计公司
  • 物流那个网站做推广好北京互联网公司大厂有哪些
  • 做博客的网站有哪些制作app费用
  • 网站增长期怎么做wordpress中文免费企业模板
  • 网络营销 企业网站杭州专门做网站
  • 外国人爱做视频网站吗WordPress工具站点
  • 怎么用vs2010做网站怎么部署自己的网站
  • 公司网站上的员工风采怎么做门户网站的功能
  • 网站那种推广链接怎么做WordPress搬家后所有页面404
  • 毕业设计网站建设流程网页版微信无法登陆
  • 电商平台网站多少钱网站建设公司案例
  • 学做室内效果图的网站网站交互做的比较好的
  • wordpress换空间后内页全部404seo怎么做优化计划
  • 装饰公司营销网站模板阿里云wordpress xampp
  • 微信怎么开团购卖东西谷歌seo知识
  • 如何做学校的网站如何破解wordpress数据库
  • 建立个人网站网络营销是什么整体营销战略的一个组成部分
  • cf小号自助购买网站求2021没封的良心网站