清单9中显示了重构的数字分类器。
清单1展示了用命令式风格编写的数字分类器。
Listing 1 shows the number classifier written in an imperative style.
当然这是一个关于数字分类的设想示例,所以很难在各种类型的代码中泛化。
This is of course a contrived example relating to number classification, so it's hard to generalize to different types of code.
我试图解决的问题是确保我的数字分类器不会将非完全数识别为完全数。
What problem am I trying to solve? I need to make sure that my number classifier doesn't identify an imperfect number as perfect.
当我隔离和移除重复代码后,数字分类器和质数检验器就变得更简单了。
Once I've isolated and removed the duplicated code, both the number classifier and the prime-number tester are much simpler. Listing 4 shows the refactored number classifier.
而按照《变化之书》方位的数字分类法,就存在10个五行数,它们分别为。
But according to "the book of variety" the number of the directions categorize method, exist 10 five lines of number, they respectively are.
要说明代码重用及其含义,我要回过来谈谈先前文章说明代码结构和风格所用的数字分类器。
To illustrate code reuse and its implications, I return to a version of the number classifier that previous installments use to illustrate code structure and style.
数字分类器使用的方法之一是对所有聚集的因子执行合计,该方法如清单1 所示
One of the methods in the number classifier performs a sum across all the gathered factors That method appears in Listing 1
要解决数字分类器问题,必须准确辨别如何搜集因子,这意味着必须编写特定代码来遍历数字,从而确定因子。
To solve the number classifier, I had to discern exactly how to gather factors, which in turn means I had to write the specific code to loop through Numbers to determine factors.
你能够通过分类、排序的活动、玩数字和逻辑游戏以及解各种各样智力游戏来练习它。
You can exercise it through classifying and sequencing activities, playing number and logic games, and solving various kinds of puzzles.
数字识别再一次成为分类学习的常见样本。
Digit recognition, once again, is a common example of classification learning.
为了更好地管理垃圾数据,我们为数字对象定义了一个垃圾层级,并且为如何确定和分类垃圾数据提供了一个见解。
To allow better waste data management, we define a waste hierarchy for digital objects and provide insights into how to identify and categorize waste data.
协作分类和标签都有用,但是我们缺乏一种让这些数字化“宝藏”为全世界所用的共同语言。
Folksonomies and tagging are useful, but we lack the common language needed to make our digital treasures universally useful.
一些食品来源于usda的食品与营养日常研究数据库(2),被分类为开头为5,7,9的五个数字组成的标识。
Some foods are from the USDA's food and Nutrient Database for Dietary Studies 2, identified by a 5-digit number starting with 5, 7, or 9.
根据具体使用的CAPTCHA算法,他们的分类技术对数字和字母的识别率可以达到50%至将近100%之间。
Their assorted techniques recognise anywhere between half and nearly all letters and numbers, depending on the particular CAPTCHA algorithm in use.
为了对任何一组数字进行分类,此处有一种算法可使它们按顺序排列。
Here's an algorithm for sorting any set of Numbers, to get them into order.
大部分数字识别的工作可以由神经网络来完成,但最近支持向量机也被证明可以在分类方面做得更好。
Much of the work on digit recognition has been done in the neural network community, but more recently support vector machines have proven to be even better classifiers.
图书馆员在数字化图书馆那时的分类帐时发现了这种不端行为。
Librarians uncovered the misdemeanour as they were digitising the library's ledger from that time.
随着海量数据(有些人称之为数字垃圾)的不断产生,手工对数据进行分类几乎已经是不可能的事了。
As ever increasing volumes of data (which some call the digital landfill) are generated, it becomes nearly impossible to classify data manually.
GalaxyZoo项目寻求大众的参与,协助斯隆数字巡天系统记录下的大量星系,以及更多最新的深度哈勃影像进行分类。
Galaxy Zoo enlists the public to help classify galaxies found in the Sloan Digital Sky Survey, and more recently in deep Hubble imagery.
实验证明该方法有很高的识别率,能够有效地进行手写数字的分类,可以满足实际应用。
The result of experiment shows high recognition rate, which indicates that the method can effectively classify handwritten digits and be put into practical use.
文本(Text)—不属于其他分类的一组由字母数字组成的字符串值。
Text-a set of alphanumeric string values that do not fit other classifications.
表示数字字符的字符分类名称。
每当客户花了一笔钱,数字钱包就会将花销自动分类记至合适的条目之下,根据客户的预算目标做出实时更新。
As a customer makes a purchase, the digital wallet automatically categorizes that expense into the appropriate category, and provides a real-time update against the customer's budget targets.
提出了一种基于马尔可夫链蒙特卡罗(MCMC)的数字调制分类方法。
A novel method is proposed for digital modulation classification based on Markov chain Monte Carlo (MCMC).
本文着重介绍在遥感影象分类中应用数字地面模型(DTM)改正地物反射光谱中地形影响的方法和试验。
In this paper the methods and experiments for applying the digital terrain model(DTM) to improve the classification accuracy are introduced.
本文简要介绍了数字证据的概念、特点、分类,以及取证的一般步骤和相关技术工具等。
This paper briefly describes the definition, characteristics, classification of digital evidence and common steps of forensics, as well as the related techniques and tools.
表示字母数字字符的字符分类名称。
提出了一种基于模糊免疫网络算法对火焰数字图像进行分类的研究方法。
The method based on fussy immune network algorithm was presented, by which the flame digital images can be classified better.
提出了一种基于模糊免疫网络算法对火焰数字图像进行分类的研究方法。
The method based on fussy immune network algorithm was presented, by which the flame digital images can be classified better.
应用推荐