At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you...
分类:
其他好文 时间:
2015-02-27 21:41:22
阅读次数:
243
TextView textView = null;
// 第一种:利用系统自带的颜色进行设置,如:
textView.setTextColor(android.graphics.Color.BLUE);
// 第二种:0xffff00ff是int类型的数据,分组一下0x|ff|ff00ff,0x是代表颜色整数的标记,ff是表示透明度,ff00ff表示颜色,注意:这里ffff00ff必须...
分类:
其他好文 时间:
2015-02-27 21:41:09
阅读次数:
202
节选自语义分析的一些方法(二),以后会不断补充。——by wepon
结合文献『Deep Learning for Computer Vision』, 以下讲讲卷积神经网络的一些注意点和问题。
激励函数,要选择非线性函数,譬如tang,sigmoid,rectified liner。在CNN里,relu用得比较多,原因在于:(1)简化BP计算;(2)使学习更快。(3)避免饱和问题(sa...
分类:
其他好文 时间:
2015-02-27 20:17:55
阅读次数:
372
android游戏开发中,使用android.graphics中的类来绘制2D向量图和文字。
一 画布Canvas
在Android中的绘图应该继承View组件,并重写它的onDraw(Canvas canvas)方法。
Canvas代表指定View上的画布,常用方法如图:
二 画刷Paint
Paint代表Canvas上的画刷,主要用于绘制风格,包括画刷颜色、画刷笔触粗...
分类:
移动开发 时间:
2015-02-27 17:01:20
阅读次数:
135
字符串工具类:/** * 实现文字自动换行 * 自动翻页 */package com.yarin.android.Examples_05_06;import java.util.Vector;import android.graphics.Canvas;import android.graphics...
分类:
其他好文 时间:
2015-02-27 00:18:47
阅读次数:
208
各种图形以及其它库图形库,著名的有两个:OpenGL和DirectX。OpenGL(“Open Graphics Library”)是一个性能卓越的三维图形标准,是图形硬件的软件接口。他是在SGI等多家世界闻名的计算机公司的倡导下,以SGI的GL三维图形库为基础制定的一个通用共享的开放式三维图形标准...
分类:
其他好文 时间:
2015-02-26 22:57:56
阅读次数:
377
一般式方程在计算机领域的重要性
常用的直线方程有一般式 点斜式 截距式 斜截式 两点式等等。除了一般式方程,它们要么不能支持所有情况下的直线(比如跟坐标轴垂直或者平行),要么不能支持所有情况下的点(比如x坐标相等,或者y坐标相等)。所以一般式方程在用计算机处理二维图形数据时特别有用。
已知直线上两点求直线的一般式方程
已知直线上的两点P1(X1,Y1) P2(X2,Y2), P1...
分类:
其他好文 时间:
2015-02-26 20:20:46
阅读次数:
182
unitUnit1;interfaceusesWindows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms,Dialogs,ExcelWithOdbc,StdCtrls,DB,ADODB;typeTForm1=class(TForm)Button1:TButton;ExcelWithOdbc1:TExcelWithOdbc;ADOQuery1:TADOQuery;procedureButton1Click(Sender:TObject);..
分类:
数据库 时间:
2015-02-26 18:46:45
阅读次数:
166
A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new computers. Each new computer was connected to one of settled earlier. Ma...
分类:
其他好文 时间:
2015-02-26 10:03:12
阅读次数:
162
Computer
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3731 Accepted Submission(s): 1886
Problem Description
A school bought the...
分类:
其他好文 时间:
2015-02-25 17:13:17
阅读次数:
123