latex 文件积累

Posted jtailong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了latex 文件积累相关的知识,希望对你有一定的参考价值。

##表格部分

###所用宏包

usepackage{array}
usepackage{longtable} % 长表格自动分页,此宏包依赖array宏包
usepackage{multirow} %不规则表格占用多行

合并表格

egin{table}[h!]
  centering
  caption{Comparative results of coverage and specificity for synthetic 1-D numeric data with six clusters for selected values of $c$}label{Tab:comp_TS_Granular_M}
  egin{tabular}{ccccccccc}
    %hline
    % after : hline or cline{col1-col2} cline{col3-col4} ...
     %    %hline
    	oprule
    multirow{3}{*}{$c$} &multicolumn{4}{c}{Standard granular TS model}             &   multicolumn{4}{c}{Proposed granular fuzzy model}                        cline{2-9}
                        &multicolumn{2}{c}{Coverage} &multicolumn{2}{c}{Specificity} &multicolumn{2}{c}{Coverage} &multicolumn{2}{c}{Specificity}                         cline{2-9}
                        & Training& Testing& Training& Testing                   & Training& Testing& Training& Testing    midrule
    2                  &0.5976   &0.5111   &0.4996  &0.4391                      &0.1667   & 0.1611 &0.1579  &0.1504    3                  &0.5952   &0.5889   &0.5188  &0.4970                      &0.2429   & 0.1444 &0.2133  &0.1242     4                  &0.7214   &0.7667   &0.6374  &0.6161                      &0.4738   & 0.4889 &0.4412  &0.4533     6                  &0.7000   &0.7056   &0.6622  &0.6704                      &0.6786   & 0.6556 &0.6403  &0.6172      8                  &0.6167   &0.5556   &0.5907  &0.5357                      &0.8000   & 0.8000 &0.7324  &0.7386      10                 &0.5524   &0.5167   &0.5336  &0.5029                      &0.8289   & 0.8167 &0.7707  &0.7673      %12                 &0.9357   &0.9389   &0.8751  &0.8791                      &0.8190   & 0.9000 &0.7519  &0.8273  
    ottomrule
  end{tabular}

end{table}

技术图片

 

 ###长算法表格,跨页显示

egin{longtable}{p{linewidth}}
	oprule
	extbf{Algorithm 1} Pseudocode for constructing of input information granules based on FCM prototypes endfirsthead

% Appear the table header at the top of every page
	oprule
	extbf{Algorithm 1} Pseudocode for constructing of input information granules based on FCM prototypes hline
endhead

% Appear hline at the bottom of every page
hline
endfoot


midrule
	extbf{Input:}  Numeric data collection $m D$, number of clusters $c$, values of $alpha, eta$, and division value of $Delta 
ho$, FCM termination criterion $epsilon$.	extbf{Output:} Input granules $A$. midrule

01.  normalize $m D$ to $(0,1)$ 2. generate a collection of numeric prototypes ${ [m v, w]}$ by using FCM 3. $ileftarrow 1$ 4. 	extbf{repeat} 5.     qquad $jleftarrow1$6.     qquad 	extbf{repeat}7.             qquadqquad  $
ho_{ij} = j*Delta
ho$8.             qquadqquad  Calculate ${
m cov}(A_{ij})$ via eqref{Eq:cov} 9.             qquadqquad  Calculate ${
m spec}(A_{ij})$ via eqref{Eq:spec} 10.            qquadqquad Calculate $sigma_{ij}$  via eqref{Eq:diviation_y}11.            qquadqquad Determine V($
ho_{ij}$) via eqref{Eq:input_gran_radus_value} 12.            qquadqquad $jleftarrow j+1$13.     qquad  	extbf{until} $
ho_{ij}>1$14.     qquad  Optimize  $
ho_{i}$ by Max$( V(
ho_{ij}), j=1,2,ldots,(1/Delta
ho) )$15.     qquad  	extbf{return} prototypes $m v_{i}$ and corresponding radii $
ho_{i}$16.     qquad  $i leftarrow i+1$17. 	extbf{until} $i>c$18. 	extbf{return} Input granules ${ [oldsymbol v_{1},
ho_{1}], [oldsymbol v_{2},
ho_{2}],ldots,[oldsymbol v_{c},
ho_{c}] }$, i.e., ${ A_{1},A_{2},ldots,A_{c} }$19. 	extbf{Check} overlaps between $A_{i}$s, 	extbf{refresh} $
ho_{i}$s 
oindent 	extbf{Output:} $A$ ottomrule
end{longtable}

技术图片

 

以上是关于latex 文件积累的主要内容,如果未能解决你的问题,请参考以下文章

C++ 代码片段(积累)

latex在vim中的代码片段

[工作积累] UE4 并行渲染的同步 - Sync between FParallelCommandListSet & FRHICommandListImmediate calls(代码片段

QT 实用代码片段

Latex使用WinEdt,怎么看某一个命令是出自哪个宏包?

MATLAB的二维线图绘图函数plot()实例积累