http://xboxforums.create.msdn.com/forums/t/61448.aspx I'm currently porting a number of custom MFC CStatic-derived controls from GDI+ to Direct2D. I've noticed when drawing horizontal and vertical lines with a 1 pixel wide stroke that the lines are i…
<!DOCTYPE html> <html> <head> <title>tension</title> <script type="text/javascript" src="../d3.min.js"></script> <script type="text/javascript" src="flare.json"></s…
https://medium.com/ios-os-x-development/perfect-smooth-scrolling-in-uitableviews-fd609d5275a5 Difficulty and the depth of material will increase from the beginning to the end of story, so I’ll start with things which are familiar to many of you. Deep…
/************************************************************************* * Compilation: javac StdDraw.java * Execution: java StdDraw * * Standard drawing library. This class provides a basic capability for * creating drawings with your programs. It…
来源请注明.本文永久地址为http://www.cnblogs.com/vertexshader/articles/2917540.html OpenGL®作为业界最为广泛使用的2D和3D图形接口标准.应用在成千上万的各式各样的计算机的程序中.从初期的崭露头角,到与Direct3D激烈竞争.后经历黯淡被Khronos接手又发扬光大.已经历经波折发展了20年. 由于过去的黯淡.至今甚至仍有人站在错误的时间角度觉得它是落后的--它从未停止它前进的步伐,这篇文章就来简述OpenGL的版本号历史和发展.…
在UI这一块,谈到自定义,就离不开画笔和画布的使用话题,在自定义控件的时候,为了做出炫酷的效果,我们往往会使用画笔和画布,那么这里我们就先来看看画笔的使用吧 简单使用例子 自定义一个View public class PaintView extends View { private Paint mPaint; public PaintView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); mPain…
Adaboost提升算法是机器学习中很好用的两个算法之一,另一个是SVM支持向量机:机器学习面试中也会经常提问到Adaboost的一些原理:另外本文还介绍了一下非平衡分类问题的解决方案,这个问题在面试中也经常被提到,比如信用卡数据集中,失信的是少数,5:10000的情况下怎么准确分类? 一 引言 1 元算法(集成算法):多个弱分类器的组合:弱分类器的准确率很低 50%接近随机了 这种组合可以是 不同算法 或 同一算法不同配置 或是 数据集的不同部分分配给不同分类器; 2 bagging:把原始数…
Microsoft Win32 to Microsoft .NET Framework API Map .NET Development (General) Technical Articles     Microsoft .NET Framework and Microsoft Visual Studio User Education TeamsMicrosoft Corporation January 2004 Applies to:    Microsoft® .NET Framework…
Source: http://www.brainm.com/software/pubs/dg/BA_10-20_ROI_Talairach/nearesteeg.htm   Area LEFT RIGHT ba01 C3 C4 ba02 C3 C4 ba03 C3 C4 ba04 C3 C4 ba05 C1 CP2 ba06 FC3 FC4 ba07 P1 P2 ba08 F1 F2 ba09 AF3 AF4 ba10 FP1 FP2 ba11 AF7 FPz ba17 O1 O2 ba18 O…
Wei Qing (died 106 BC) was a military general of the Western Han dynasty whose campaigns against the Xiongnu earned him great acclaim. He was a relative of Emperor Wu because he was the younger half-brother of Empress Wei Zifu (Emperor Wu’s wife) and…