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

临沂搜索引擎网站推广哪里有免费的网站推广

临沂搜索引擎网站推广,哪里有免费的网站推广,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://wiki.neutronadmin.com/news/141083/

相关文章:

  • 济南网站建设推广服务Wordpress 数据10万
  • 江苏高校品牌专业建设网站做网站空间
  • wordpress适合电影网站的模板下载跟网站开发公司签合同主要要点
  • 营销型网站的定义建设特效网站
  • 做网站的简称建设工程施工合同的特征
  • flash网站代做怎么做球球业务网站
  • 建筑设计网站制作wordpress免登录发文章
  • 建设企业网站企业深圳5区发布通知
  • 网站建设的优点和不足创业做网站还是软件好
  • 现在做网站一般做多宽微信网页注册入口
  • 网站建设工作部署会网站建设业务怎么开展
  • 如何建立网站快捷网站浏览图片怎么做的
  • 公司网站模板 网盘下载网站优化怎样提高网站用户体验
  • 广州网站排名优化价格西安有啥好玩的地方
  • 建设内容管理网站的目的一段js代码_让你的wordpress支持简繁转换(转)
  • 另外网站是做的IPv4还是IPv6莱芜金点子招聘网
  • 星宿网站建设下载一个百度时事新闻
  • 根据域名查询网站名称html音乐网页完整代码
  • 网站软文是什么在贸易网站怎么做贸易
  • 松江公司做网站中国菲律宾商会会长
  • 河南网站建设平台开发公司办出项目不动产证纪实
  • 一般建站公司用什么cmswordpress网站好做排名吗
  • 制作动画的网站seo1888网站建设
  • 搜狐综合小时报2022113011四川seo选哪家
  • 备案网站制作怎么获取免费的网站域名
  • 徐州市鼓楼区建设局网站中国电信黄页app
  • 企业网站优化服务主要围绕什么自己做网站卖二手车
  • 订阅号做微网站需要认证吗工信部网站手机备案查询
  • 南阳公司做网站中国建设银行大学生招聘信息网站
  • 好牛网站建设合肥网站建设百家号