摘要: \usepackage{amsmath} 常用宏包 \usepackage{arydshln} 此宏包带虚线 $ $ 行内公式 $$ $$ 行间公式 \[ \] 行间公式 \numberwithin{equation}{section} 按节给公式编号 \begin{subequations} \end{subequations} 使得编号不变的情况,在后面添加后缀来区分 \boxed{ 公式外面加框 \newcommand{新命令}{被指定命令} 自行指定命令 ^ 上标 _ 下标 \mathop{}^a_b 正上方和正下方出现a 和 ... 阅读全文
posted @ 2014-03-21 13:36 胡炜 阅读(1400) 评论(0) 推荐(0) 编辑
摘要: 一、文档 \documentclass{article} %book, report, letter二、宏包 \usepackage{amsmath}三、正文 \begin{document} \end{document}四、符号输入 \% = % \$ = $ \{...\} = {...} $\backslash$ = \五、标题页 \title{this is my book} \author{James Fang} \date{} %禁止显示日期 \maketitle六、章节 \part{elementary} \chapter{in... 阅读全文
posted @ 2014-03-20 22:07 胡炜 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 一、对齐段落 \\ or \newline 另起一行,而不是另起一段 \\* 在强制断行后,还禁止分页 \newpage 另起一页 \linebreak[n] \nolinebreak[n] \pagebreak[n] \nopagebreak[n] \sloppy 降低一点儿标准 \fussy 恢复为缺省状态二、断词 \hyphenation{word list} 使列于参量中的单词仅在注有”一“的地方断词 \mbox{text} 保证把几个单词排在同一行上三、引号 `` 左引号 '' 右引号 ` and ' 产生一个单引号 四、其他... 阅读全文
posted @ 2014-03-20 21:52 胡炜 阅读(794) 评论(0) 推荐(0) 编辑
摘要: LATEX支持三种预定义的页眉/页脚(header/footer)样式,称为页面样式(pagestyle)。如下命令: \pagestyle{style}中的style参数确定了使用哪一种页面样式。 plain 在页脚正中显示页码。这是页面样式的缺省设置 headings 在页眉中显示章节名及页码,页脚空白 empty 将页眉页脚都设为空白 可以通过如下命令来改变当前页面的页面样式 \thispagestyle{style} 阅读全文
posted @ 2014-03-19 10:55 胡炜 阅读(3781) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,骨骼追踪引擎会对视野内的所有活动的游戏者进行追踪。但只会选择两个可能的游戏者产生骨骼数据,大多数情况下,这个选择过程不确定。如果要自己选择追踪对象,需要使用AppChoosesSkeletons属性和ChooseSkeletons方法。 默认情况下AppChoosesSkeleton属性为false,骨骼追踪引擎追踪所有可能的最多两个游戏者。要手动选择追踪者,需要将AppChoosesSkeleton设置为true,并调用ChooseSkeletons方法,传入TrackingIDs已表明需要追踪那个对象。ChooseSkeletons方法接受一个,两个或者0个Tracking.. 阅读全文
posted @ 2014-03-18 16:19 胡炜 阅读(639) 评论(0) 推荐(0) 编辑
摘要: MCvDTreeParams cvFolds //If this parameter is >1, the tree is pruned using cv_folds-fold cross validation. maxCategories //默认为10 maxDepth //This parameter specifies the maximum possible depth of the tree. That is the training algorithms attempts to split a node while its depth is l... 阅读全文
posted @ 2014-03-14 14:31 胡炜 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 一、定义 System.Collections.ArrayList类是一个特殊的数组(即动态数组)。通过添加和删除元素,就可以动态改变数组的长度。二、优点 动态的增加和删除元素,实现了ICollection和IList接口,灵活的设置数组的大小。三、构造器 public ArrayList(); 默认的构造器,将会以默认(16)的大小来初始化内部的数组 public ArrayList(ICollection); 用一个实现了ICollection接口的对象来构造,并将该集合的元素添加到ArrayList public ArrayList(int); 用指定... 阅读全文
posted @ 2014-02-24 22:00 胡炜 阅读(376) 评论(0) 推荐(0) 编辑
摘要: Math.Ceiling 向上进位取整。例如:Math.Ceiling(32.6)=33; Math.Ceiling(32.0)=32;Math.Floor 向下舍位取整。例如:Math.Floor(32.6)=32;Math.Round 取指定位数的小数。例如:Math.Round(36.236,2)=36.24; Math.Round(36.232,2)=36.23;Math.Log 取指定数字在使用指定底对的对数。例如:一本16开的书,计算对开了几次。Math.Log(16,2)=4;Math.E 表示自然对数的底,它由常数 e 指定。Math.PI 表示圆的周长与其直径... 阅读全文
posted @ 2014-02-21 10:29 胡炜 阅读(5193) 评论(1) 推荐(0) 编辑
摘要: 一、相关类MCvMoments inv_sqrt_m00 m00!=0?1/sqrt(m00):0 m00 spatial moments m01, m02, m03, m10, m11 m12, m21, m30, mu02, mu03 mu11, mu12, mu20, mu21, mu30MCvHuMoments hu1 Hu ivnariants hu2, hu3, hu4, hu5, hu6, hu7public static void cvMoments( IntPtr arr, //Image (1-... 阅读全文
posted @ 2014-02-18 22:21 胡炜 阅读(7121) 评论(0) 推荐(0) 编辑
摘要: 一、使循环不卡 Application.DoEvents(); System.Threading.Thread.Sleep(5);二、计算代码运行时间 Stopwatch sw = new Stopwatch(); sw.Start(); ... sw.Stop(); 阅读全文
posted @ 2014-02-17 16:41 胡炜 阅读(218) 评论(0) 推荐(0) 编辑