在研究中使用VB6完成了算法代码的设计。
VB6 is used to finish the design of algorithm code in the study.
说明:这个是详细的粒子群算法代码。大家可以借鉴参考。
This is the detailed particle swarm optimization code. We can learn from the reference.
可添加相关算法代码,实现对视频录像或摄像头获取图像的实时处理。
Correlation algorithm can add code to achieve or video camera to obtain images of the real-time processing.
这是好事,因为用户甚至可以对之前已完成的算法代码进行标签,且未标签的代码也可以继续使用。
This is good since an user can start tagging even before completing the coding of the algorithm, and the untagged code continues to work.
编写了Matlab语言的算法代码,对当前测量系统采集的直线度数据进行拟合分析,进行直线度误差评定。
Compiles the arithmetic codes based on MATLAB, analyzing and fitting the measurement data, assessing the straightness error.
不要为了使代码更快而胡乱编写代码——要找到更好的算法。
Don't diddle code to make it faster—find a better algorithm.
事实上,这个算法出现在该代码的注释中。
当希望对SPE代码或算法进行单元测试或获取有关它们的分时信息时,这可能就足够了。
When you want to do unit tests on SPE code or algorithms or get timing information on them, this is probably enough.
通过适当的说服工作,增加身份验证方案的安全性可以像对当前密码输入代码应用控制算法一样简单。
With the appropriate persuasion, increasing the security of your authentication schemes can be as easy as applying these control algorithms to your current password entry code.
开发人员可以快速试验一个想法、研究一种对象属性或不同算法,而无需编译、执行和测试任何代码。
A developer can quickly try out an idea and explore an object's properties or different algorithms without having to compile, execute, and test any code.
唯一需要使用内联注释是在你编写了非常复杂的算法,你需要在代码旁边记录说明你的想法。
The only legitimate use of inline comments is when you have some very complex algorithm that you need to have some thoughts about beside the code.
计算上开销很高的代码,如数值分析、算法,等等。
Computationally expensive code, such as numerical analysis, algorithms, and so on.
通过使用针对用户空间和内核级代码的这些简单算法,现在能够检测、记录和响应来自用户的各种物理输入。
With these simple algorithms for user space and kernel-level code, you now have the ability to detect, log, and respond to the full range of physical input from the user.
您可以想象到通过类似的算法根据国家代码识别国际电话号码。
You can imagine a similar algorithm for an international number with a country code.
本文提供的代码是相对简单的、使用GD的图像处理算法。
The code presented here is a relatively simple image processing algorithm using GD.
这方面还有很长的路要走,优化算法、修正低效代码。
This can go a long way, improving things algorithmically and fixing inefficient code.
为了利用泛化算法而对代码进行移值的时候,这些不透明因素可能会造成混乱。
These elements of nontransparency can cause confusion when migrating code to take advantage of generic algorithms.
虽然每条语句的目的十分明确,因为它匹配算法的文本描述,但是它不像代码包一样扼要。
While it is clear what the intent of each statement is because it matches the text description of the algorithm, it is not as terse a bundle of code as it could be.
简化算法。代码如恶魔,在你完成编码后,应回头并且优化它。
Simplify the algorithm - Code like a fiend, but once you're done, go back through your code and optimize it.
由于已经找到PPE需要拷贝多少项数据,SPE程序现在可以分配本地存储空间,将项目读入这段存储空间(使用与前面相同的代码),然后执行算法(如上所示)。
Having found out how many items the PPE needs copied, the SPE program can allocate local storage, read the items in (using the same code as before), and then perform its algorithm, reviewed above.
很多文章都对给定的代码段提供了高级的概述,而不是对算法和代码详细进行介绍。
Many articles give high-level overviews of a given section of code, rather than detailed descriptions of algorithms and code.
而且,大多数代码基经常包含循环,我们使用了复杂的算法来处理这种循环,但依然能保证提供高效的层次图。
Further, most codebases often have cycles, and we have added sophisticated algorithms to work with such cycles but still provide effective layered diagrams.
调整搜索引擎时请牢记:只需修改几段代码,就能获得对算法的性能和结果的主要修改。
Keep in mind as you tune your search engine that major modifications to the performance and results of the algorithms can be acquired by modifying just a few sections of the code.
这些改进源于返回去检查您的算法正在做什么,以及贯穿代码的操作。
It was all from taking a step back and thinking about exactly what your algorithm was doing, and how your actions would trickle through the code.
我们通常认为优雅的算法或者技术的优雅比代码的易读性和结构具有更高的价值。
We often value elegant algorithms or technical elegance over code readability and structure.
一流的算法和表现不能被忽略,写出规整可读的代码可以保证算法的简洁明了。
Elegant algorithms and performance is something you shouldn't ignore. Writing compact and readable code helps ensure your algorithms are clean and simple.
但是清单7中的代码不简洁,用了更多代码来表达和清单6中三行代码等价的泛化算法。
But the code in Listing 7 is really ugly; it takes many more lines of code to express the generic algorithm equivalent of the three lines in Listing 6.
我们将定义一个抽象类dynamicprogramming,它包含所有算法的公共代码。
You'll define an abstract DynamicProgramming class that contains code common to all the algorithms.
您应当还记得,soundex算法也会把每个soundex代码裁剪成4个字符,这样就疏忽了长单词的尾部,因此也就进一步增加了匹配的数量。
As you'll recall, the soundex algorithm also truncates each soundex code to four characters, further boosting the number of matches by ignoring the ends of long words.
需快速运行的组件——grep和Perl——实际上都运行得很快,而算法和显示代码则尽量不产生干扰以保证运行速度。
The components that need to be fast — grep and Perl — are very fast, indeed, and the algorithm and display code stays out of the way enough to keep things fast.
应用推荐