基于最小能量的图像分割方法
基于最小能量的图像分割方法,介绍了一种基于图像分割方法,简单有效。
Neural Networks and Deep Learning神经网络与深度学习(中文版)
⼀个以原理为导向的⽅法,本书⼀个坚定的信念,是让读者更好地去深刻理解神经⽹络和深度学习,⽽不是像⼀张冗⻓的洗⾐单⼀样模糊地列出⼀堆想法。如果你很好理解了核⼼理念,你就可以很快地理解其他新的推论。⽤编程语⾔对⽐,把这理解为掌握⼀种新语⾔的核⼼语法、库和数据结构。你可能仍然只是 “知道” 整个编程语⾔的⼀⼩部分—许多编程语⾔有巨⼤的标准库—但新的库和数据结构可以很快且容易被理解。这就意味着这本书的重点不是作为⼀个如何使⽤⼀些特定神经⽹络库的教程。如果你主要想围绕着某个程序库的⽅式去学习,那不要读这本书!找到你想学习的程序库,并通过教程和⽂档来完成。注意这点。虽然这也许能很快解决你的问题,但是,如果你想理解神经⽹络中究竟发⽣了什么,如果你想要了解今后⼏年都不会过时的原理,那么只是学习些热⻔的程序库是不够的。你需要领悟让神经⽹络⼯作的原理。技术来来去去,但原理是永恒的。
⼀个动⼿实践的⽅法
我们将通过攻克⼀个具体的问题:教会计算机识别⼿写数字的问题,来学习神经⽹络和深度学习的核⼼理论。这个问题⽤常规的⽅法来编程解决是⾮常困难的。然⽽,正如我们所看到的,它可以很好地利⽤⼀个简单的神经⽹络来解决,只需⼏⼗⾏代码,没有特别的库。更多的是,我们会通过多次迭代来改进程序,逐步融⼊神经⽹络和深度学习的核⼼思想。
这⼀动⼿的⽅法意味着你需要⼀些编程经验来阅读这本书。但你不必是⼀个专业的程序员。我⽤ Python(2.7 版)写了代码,即使你不是⽤ Python 编程,努⼒⼀下也应该很容易理解。通vii过这本书,我们将开发⼀个⼩的神经⽹络库,它可以⽤来实验和建⽴理解。所有的代码都可以在这⾥下载。⼀旦你完成了这本书,或者你读它,你可以轻松地学会⼀个功能更加完善的神经⽹络库⽤于⽣产
跟我一起写makefile
跟我一起写 Makefile 作者:陈皓
第一部分、概述...............................................................................................................................6
第二部分、关于程序的编译和链接...............................................................................................6
第三部分、Makefile 介绍............................................................................................................7
一、Makefile的规则..............................................................................................................7
二、一个示例...........................................................................................................................8
三、make是如何工作的........................................................................................................9
四、makefile中使用变量....................................................................................................10
五、让make自动推导..........................................................................................................11
六、另类风格的makefile....................................................................................................12
七、清空目标文件的规则.....................................................................................................13
第四部分、Makefile 总述..........................................................................................................13
一、Makefile里有什么?....................................................................................................13
1、显式规则。..............................................................................................................14
2、隐晦规则。..............................................................................................................14
3、变量的定义。..........................................................................................................14
4、文件指示。..............................................................................................................14
5、注释。......................................................................................................................14
二、Makefile的文件名........................................................................................................15
三、引用其它的Makefile....................................................................................................15
四、环境变量 MAKEFILES................................................................................................16
五、make的工作方式..........................................................................................................16
第五部分、书写规则.....................................................................................................................17
一、规则举例.........................................................................................................................17
二、规则的语法.....................................................................................................................17
三、在规则中使用通配符.....................................................................................................18
四、文件搜寻.........................................................................................................................19
五、伪目标.............................................................................................................................20
六、多目标.............................................................................................................................22
七、静态模式.........................................................................................................................22
八、自动生成依赖性.............................................................................................................24
第六部分书写命令.......................................................................................................................25
一、显示命令.........................................................................................................................26
二、命令执行.........................................................................................................................26
三、命令出错.........................................................................................................................27
四、嵌套执行make..............................................................................................................28
五、定义命令包.....................................................................................................................30
第七部分使用变量.......................................................................................................................30
一、变量的基础.....................................................................................................................31
二、变量中的变量.................................................................................................................32
三、变量高级用法.................................................................................................................34
四、追加变量值.....................................................................................................................37
五、override 指示符..........................................................................................................37
六、多行变量.........................................................................................................................38
七、环境变量.........................................................................................................................38
八、目标变量.........................................................................................................................39
九、模式变量.........................................................................................................................40
第八部分使用条件判断...............................................................................................................40
一、示例.................................................................................................................................40
二、语法.................................................................................................................................42
第九部分使用函数.......................................................................................................................43
一、函数的调用语法.............................................................................................................44
二、字符串处理函数.............................................................................................................44
1、subst.......................................................................................................................44
2、patsubst.................................................................................................................45
3、strip.........................................................................................................................45
4、findstring...............................................................................................................46
5、filter.........................................................................................................................46
6、filter-out.................................................................................................................46
7、sort..........................................................................................................................47
8、word........................................................................................................................47
9、wordlist..................................................................................................................47
10、words....................................................................................................................47
11、firstword..............................................................................................................48
12、字符串函数实例....................................................................................................48
三、文件名操作函数.............................................................................................................48
1、dir.............................................................................................................................48
2、notdir......................................................................................................................48
3、suffix.......................................................................................................................49
4、basename..............................................................................................................49
5、addsuffix................................................................................................................49
6、addprefix...............................................................................................................49
7、join...........................................................................................................................50
四、foreach 函数................................................................................................................50
五、if 函数............................................................................................................................50
六、call函数..........................................................................................................................51
七、origin函数.....................................................................................................................51
“undefined”.................................................................................................................52
“default”.......................................................................................................................52
“file”...............................................................................................................................52
“command line”.........................................................................................................52
“override”....................................................................................................................52
“automatic”.................................................................................................................52
八、shell函数.......................................................................................................................53
九、控制make的函数..........................................................................................................53
1、error........................................................................................................................53
2、warning..................................................................................................................54
第十部分 make 的运行..............................................................................................................54
一、make的退出码..............................................................................................................54
二、指定Makefile................................................................................................................54
三、指定目标.........................................................................................................................55
“all”................................................................................................................................56
“clean”..........................................................................................................................56
“install”.........................................................................................................................56
“print”...........................................................................................................................56
“tar”...............................................................................................................................56
“dist”..............................................................................................................................56
“TAGS”..........................................................................................................................56
“check”和“test”..........................................................................................................56
四、检查规则.........................................................................................................................57
五、make的参数..................................................................................................................57
第十一部分隐含规则...................................................................................................................61
一、使用隐含规则.................................................................................................................61
二、隐含规则一览.................................................................................................................62
1、编译C程序的隐含规则...........................................................................................63
2、编译C++程序的隐含规则.....................................................................................63
3、编译Pascal程序的隐含规则..................................................................................63
4、编译Fortran/Ratfor程序的隐含规则..................................................................63
5、预处理Fortran/Ratfor程序的隐含规则..............................................................63
6、编译Modula-2程序的隐含规则...........................................................................63
7、汇编和汇编预处理的隐含规则..............................................................................64
8、链接Object文件的隐含规则.................................................................................64
9、Yacc C程序时的隐含规则.....................................................................................64
10、Lex C程序时的隐含规则.....................................................................................64
11、Lex Ratfor程序时的隐含规则...........................................................................65
12、从C程序、Yacc文件或Lex文件创建Lint库的隐含规则..................................65
三、隐含规则使用的变量.....................................................................................................65
1、关于命令的变量。..................................................................................................65
2、关于命令参数的变量..............................................................................................66
四、隐含规则链.....................................................................................................................67
五、定义模式规则.................................................................................................................68
1、模式规则介绍..........................................................................................................68
2、模式规则示例..........................................................................................................69
3、自动化变量..............................................................................................................70
4、模式的匹配..............................................................................................................72
5、重载内建隐含规则..................................................................................................72
六、老式风格的"后缀规则".................................................................................................73
七、隐含规则搜索算法.........................................................................................................74
第十二部分使用make更新函数库文件....................................................................................75
一、函数库文件的成员.........................................................................................................75
二、函数库成员的隐含规则.................................................................................................75
三、函数库文件的后缀规则.................................................................................................76
四、注意事项.........................................................................................................................76
第十三部分后序...........................................................................................................................77
走出华为 走出华为
走出华为
自序:当华为已成往事
汤圣平
1996的9月18日忽然入的华为,2003年的1月28日又忽然从华为辞职。
忽然间,华为成了我的往事。
“往事不用再提,人生已多风雨。 ”出于震撼和感动的缘故,《霸王别姬》像
是我记忆中的背景经常在眼前反复播映。当华为成为往事时,此时的情感才被时
间的棱镜折射出一束
束夺目的色彩。
在深圳,两个月内搬了3次家,在疲劳和厌倦中的1996 年9月,我跨入了
华为。突然间,我发现我爱上了从用户服务中心大厦的大厅里快步地走过;我爱
上了等电梯时同事们热情的打闹;我爱上了办公室里那淡淡的香水的味道。
我还爱上了那个靠在墙角的垫子。我不仅中午睡,我晚上还睡;不仅上半夜
睡,我下半夜还睡;不仅工作日睡,我星期天还睡;不仅我自己睡,还把室友找
来睡;不仅睡觉,我把牙刷、牙膏、毛巾都带过来了。我爱上你了,华为。
2000 年,公司领导要派我到市场前线去工作,我对市场实在是一窍不通,
我想退却。但领导和同事们鼓励我,认为我肯定行。我就豁出去了。我这个连交
换机多少钱一线都不知道的文科生, 我这个一时间连内存和硬盘还没分清楚的文
科生,我这个在市场前线很难一见的纯纯粹粹的文科生,是华为一如既往地手把
手教我。当领导告诉我可以选择一个办事处的时候,我将信将疑地问他:杭州可
以吗?当任命出来时,我久久地注视着屏幕。我谢谢你,华为。
2002 年底,我提出辞职,办事处代表找我谈话并多次挽留。当我做了决定
之后,代表处请我吃饭;系统部一遍一遍请我吃饭;同事们一遍一遍一遍请我吃
饭,我这个被同事们称为从来没看见喝醉过的人,尽情地把自己喝醉了。我这个
即将离开华为的老员工,我这个华为给了我比绝大多数同龄人要多的老员工,我
这个偶尔对华为还有些抱怨的老员工,面对此情此景,怎么舍得开口和你说再见
呢?我留恋你,华为。
2003 年春节后,我开始安心写作本书,关掉手机,拔掉电话线。但是,每
到周末,我还是自觉不自觉地把电话开启。我知道,此时华为朋友们的电话就会
响起,那是熟悉的到酒吧集合的信号。我坐在大群华为人中间,没有一点隔阂,酒还是大口大口地喝,谈的还是华为、任正非。爱华为、骂华为,就是话题离不
开华为。我这个留着胡子的前华为人呐,嘿嘿,我怀念你,华为。
我在书写到一半的时候,突然间一种莫名的惆怅紧紧地勒着我。我和好朋友
冯光喝酒,我告诉他,我心中有隐隐的不安,这样写华为,是不是对不起华为对
我的好?他说,你不是经常提起,我们对华为应该感恩吗,你写书的时候是不是
也带着这种心情呢?如果是,你的文字中就会自然地流露出来。
对,感恩,感恩!我释然了,我是怀着感恩的心情在写你呀,亲爱的华为。
因为感恩,所以热情地歌颂你。
因为感恩,所以无情地批判你。
圣平自序于杭州寓所
2003年12月3日
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
• Table of Contents
• Index
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
By Herb Sutter, Andrei Alexandrescu
Publisher : Addison Wesley Professional
Pub Date : October 25, 2004
ISBN : 0-321-11358-6
Pages : 240
Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. Now, two of the world's most respected C++ experts distill the rich collective experience of the global C++ community into a set of coding standards that every developer and development team can understand and use as a basis for their own coding standards.
The authors cover virtually every facet of C++ programming: design and coding style, functions, operators, class design, inheritance, construction/destruction, copying, assignment, namespaces, modules, templates, genericity, exceptions, STL containers and algorithms, and more. Each standard is described concisely, with practical examples. From type definition to error handling, this book presents C++ best practices, including some that have only recently been identified and standardized-techniques you may not know even if you've used C++ for years. Along the way, you'll find answers to questions like
What's worth standardizingand what isn't?
What are the best ways to code for scalability?
What are the elements of a rational error handling policy?
How (and why) do you avoid unnecessary initialization, cyclic, and definitional dependencies?
When (and how) should you use static and dynamic polymorphism together?
How do you practice "safe" overriding?
When should you provide a no-fail swap?
Why and how should you prevent exceptions from propagating across module boundaries?
Why shouldn't you write namespace declarations or directives in a header file?
Why should you use STL vector and string instead of arrays?
How do you choose the right STL search or sort algorithm?
What rules should you follow to ensure type-safe code?
Whether you're working alone or with others, C++ Coding Standards will help you write cleaner codeand write it faster, with fewer hassles and less frustration.
深入C++对象模型
Publisher
: Addison Wesley
Pub Date
: May 03, 1996
ISBN
: 0-201-83454-5
Pages
: 304
Slots
: 1
Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritance, and "the virtuals"-virtual functions and virtual inheritance. This book shows how your understanding the underlying implementation models can help you code more efficiently and with greater confidence. Lippman dispells the misinformation and myths about the overhead and complexity associated with C++, while pointing out areas in which costs and trade offs, sometimes hidden, do exist. He then explains how the various implementation models arose, points out areas in which they are likely to evolve, and why they are what they are. He covers the semantic implications of the C++ object model and how that model affects your programs.
Highlights
Explores the program behavior implicit in the C++ Object Model's support of object-oriented programming.
Explains the basic implementation of the object-oriented features and the trade offs implicit in those features.
Examines the impact on performance in terms of program transformation.
Provides abundant program examples, diagrams, and performance measurements to relate object-oriented concepts to the underlying object model.
If you are a C++ programmer who desires a fuller understanding of what is going on "under the hood," then Inside the C++ Object Model is for you!
Pattern_Recognition_and_Machine_Learning
Information Science and Statistics
Series Editors:
M. Jordan
J. Kleinberg
B. Scho ¨lkopf
VxWorks的Media Lib 3.0 (Part2)
VxWorks的Media Lib 3.0 库,很难找到在这里分享一下阿!需要研究和学些Tornado或者Vxworks的可以下载,商业用途请绕行!(2/2)
VxWorks的Media Lib 3.0 (Part1)
VxWorks的Media Lib 3.0 库,很难找到在这里分享一下阿!需要研究和学些Tornado或者Vxworks的可以下载,商业用途请绕行!
WindML3.0 补丁
wind media lib 3.0补丁!!
虚拟软驱 ramdisknt15
虚拟软驱工具ramdisknt15,需要的赶紧下载吧~~
NHibernate的Demo
用Nhibernate访问Postgre数据库的一个例子,参照了http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx官方文档中的例子!
The Unified Modeling Language Reference Manual, Second Edition
The Unified Modeling Language Reference Manual, Second Edition
by James Rumbaugh, Ivar Jacobson, and Grady Booch
Published 2005 by Addison-Wesley
ISBN 0-321-24562-8
File UMLRefCD.pdf contains an electronic version of The Unified Modeling
Language Reference Manual in Adobe(r) Reader(r) format. It is
programing C# edition5
英文原版,清晰带目录。
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Part I. The C# Language
1. C# 3.0 and .NET 3.5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
The Evolution of C# 3
The C# Language 4
The .NET Platform 6
2. Getting Started: “Hello World” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Classes, Objects, and Types 7
Developing “Hello World” 14
Using the Visual Studio 2008 Debugger 18
3. C# Language Fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Types 21
Variables and Constants 25
Whitespace 33
Statements 33
Operators 49
Preprocessor Directives 59
4. Classes and Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Defining Classes 62
Creating Objects 67
Using Static Members 75
Destroying Objects 79
Passing Parameters 83
iv | Table of Contents
Overloading Methods and Constructors 89
Encapsulating Data with Properties 92
readonly Fields 96
5. Inheritance and Polymorphism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Specialization and Generalization 98
Inheritance 101
Polymorphism 102
Abstract Classes 109
The Root of All Types: Object 113
Nesting Classes 115
6. Operator Overloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Using the operator Keyword 118
Supporting Other .NET Languages 119
Creating Useful Operators 120
Logical Pairs 120
The Equality Operator 120
Conversion Operators 121
Putting Operators to Work 121
7. Structs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Defining Structs 128
Creating Structs 129
8. Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Defining and Implementing an Interface 132
Overriding Interface Implementations 147
Explicit Interface Implementation 151
9. Arrays, Indexers, and Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Arrays 156
The foreach Statement 162
Indexers 177
Collection Interfaces 186
Constraints 190
List<T> 195
Queues 206
Stacks 208
Dictionaries 211
Table of Contents | v
10. Strings and Regular Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Strings 215
Regular Expressions 229
11. Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Throwing and Catching Exceptions 242
Exception Objects 252
12. Delegates and Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Events 256
Events and Delegates 257
Anonymous Methods 271
Part II. C# and Data
13. Introducing LINQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Defining and Executing a Query 280
LINQ and C# 285
Anonymous Types 291
Implicitly Typed Local Variables 291
Extension Methods 292
Lambda Expressions in LINQ 297
14. Working with XML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
XML Basics (A Quick Review) 302
X Stands for eXtensible 304
Creating XML Documents 304
Searching in XML with XPath 311
Searching Using XPathNavigator 322
XML Serialization 329
15. Putting LINQ to Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
Getting Set Up 338
LINQ to SQL Fundamentals 339
Using Visual Studio LINQ to SQL Designer 344
Retrieving Data 349
Updating Data Using LINQ to SQL 353
Deleting Relational Data 358
LINQ to XML 363
vi | Table of Contents
16. ADO.NET and Relational Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Relational Databases and SQL 368
The ADO.NET Object Model 372
Getting Started with ADO.NET 374
Part III. Programming with C#
17. Programming ASP.NET Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Web Forms Fundamentals 381
Creating a Web Form 385
Data Binding 391
18. Programming WPF Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
WPF in a Very Small Nutshell 404
Building the Application 406
What Have You Learned, Dorothy? 419
19. Programming Windows Forms Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 420
Creating the Application 420
Part IV. The CLR and the .NET Framework
20. Attributes and Reflection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
Attributes 449
Reflection 456
21. Threads and Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
Threads 466
Synchronization 474
Race Conditions and Deadlocks 485
22. Streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
Files and Directories 488
Reading and Writing Data 499
Asynchronous I/O 506
Network I/O 511
Web Streams 527
Serialization 529
Isolated Storage 538
Table of Contents | vii
23. Programming .NET and COM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
Importing ActiveX Controls 542
P/Invoke 551
Pointers 554
C# Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
C++设计新思维(简体)
侯捷翻译的,对于C++的泛型设计很有帮助!
Oracle技术人员求职面试题集锦
Oracle技术人员求职面试题集锦 !求职面试必看!
oracle高性能SQL调整
oracle sql 优化的经典著作!真正的是你掌握oracle的核心知识
notepad ++
很好的文本编辑软件,界面简洁,占用资源少,很好很强大!