说明:这个是详细的粒子群算法代码。大家可以借鉴参考。
This is the detailed particle swarm optimization code. We can learn from the reference.
编写了Matlab语言的算法代码,对当前测量系统采集的直线度数据进行拟合分析,进行直线度误差评定。
Compiles the arithmetic codes based on MATLAB, analyzing and fitting the measurement data, assessing the straightness error.
开发人员可以快速试验一个想法、研究一种对象属性或不同算法,而无需编译、执行和测试任何代码。
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 new code makes a better use of system resources and includes algorithms that improve the scalability and performance.
然而,任何技术都是有限制的:这些工具只是针对代码生成一套观察报告,它们并不能理解算法或是开发者的意图。
However like any technology there are limits: these tools are only generating a set of observations about the code. They don't understand algorithms or the developer's intent.
事实上,这个算法出现在该代码的注释中。
需快速运行的组件——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.
通过使用针对用户空间和内核级代码的这些简单算法,现在能够检测、记录和响应来自用户的各种物理输入。
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.
本文提供的代码是相对简单的、使用GD的图像处理算法。
The code presented here is a relatively simple image processing algorithm using GD.
现在,我们考虑一下如何将这个算法应用于当前的大写转换代码。
Now, let's think about how you might apply this algorithm to your current uppercase-conversion code. For reference, here is the original code in convert_driver_c.c
现在,我们将更为详细的查看算法的每一步,同时查看大部分有意思的代码片段。
We'll now go through each step of the algorithm in more detail, examining most of the interesting code snippets along the way.
本文所附示例代码中的xml加密实现对内容加密只能识别Triple - des算法。
The implementation of XML encryption used in the sample code accompanying this article only recognizes the Triple-DES algorithm for content encryption.
就像在soundex算法里一样,第一个字母被保留,最后的代码被裁剪成四个字符,但是如果短于四个字符,也并不填充。
As in the Soundex algorithm, the first letter is retained and the final code is truncated to four characters, although it is not padded if shorter.
通过适当的说服工作,增加身份验证方案的安全性可以像对当前密码输入代码应用控制算法一样简单。
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 programmer can increase the performance and efficiency of the software by improving algorithm, data and code structures.
哈希算法指定哈希代码的大小。
本文采用LAG数据结构对测井曲线图数据进行压缩,压缩效率较高,且算法简单,代码简洁。
LAG was used to compress well-logging data, which has the merits of relatively high compressed efficiency, quite simple algorithm and the extremely succinct code.
从实际上说,soundex算法的运作方式是把某个字母表中的每个字母映射成代表它的语音组的一个数字代码。
Essentially, Soundex algorithms function by mapping each letter of a given alphabet to a numerical code representing its phonetic group.
然后,应用程序代码可以调用createPayCheck方法,并确保用正确的算法计算工资。
The application code can then call the createPayCheck method with the assurance that the correct algorithm for calculating pay is being used.
Aspell算法的优势在于它利用编辑距离的方式,它在单词级别上和语音代码级别上都使用编辑距离。
The strength of the Aspell algorithm is the way it USES edit distance at both the word level and the phonetic code level.
这方面还有很长的路要走,优化算法、修正低效代码。
This can go a long way, improving things algorithmically and fixing inefficient code.
拥有了XDebug度量之后——而不是之前——您可以优化代码来调整算法、减少瓶颈并减轻过多的内存使用。
Armed with XDebug metrics — and not before — you can optimize your code to tweak algorithms, reduce bottlenecks, and relieve excessive memory use.
TemplateMethod模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
哈希函数是基于键返回数值哈希代码的算法。
A hash function is an algorithm that returns a numeric hash code based on a key.
例如,如果你想增加一些代码来监视什么方法被调用,它的参数以及它内部的算法和计算是怎样工作的,那么你就可以自己定制一个探针。
For example, if you wanted to add some code that monitored what method was being called, its parameters, and how an internal computation or algorithm is working, then you can define a custom probe.
用这些语言写出的代码需要比Scala更少的类型注解,因为Scala的类型推断算法得同时支持面向对象类型和函数式类型。
Code written in these languages require type annotations less often than in Scala, because Scala's type inference algorithm has to support object-oriented typing as well as functional typing.
通过在计算机上的模拟测试,证明该算法对网络病毒具有较高的检测精度与速度,且运算开销小,代码简单,可以嵌入到网络设备中。
Simulation experiments indicate that the algorithm has the higher detecting accuracy and speed and spends less system resources, and can be embedded into network devices for its simple codes.
而且,大多数代码基经常包含循环,我们使用了复杂的算法来处理这种循环,但依然能保证提供高效的层次图。
Further, most codebases often have cycles, and we have added sophisticated algorithms to work with such cycles but still provide effective layered diagrams.
清单1.通用divide - and - conquer并行算法的伪代码。
Listing 1. Pseudo-code for generic divide-and-conquer parallel algorithms.
很多文章都对给定的代码段提供了高级的概述,而不是对算法和代码详细进行介绍。
Many articles give high-level overviews of a given section of code, rather than detailed descriptions of algorithms and code.
应用推荐