例如,您需要设置几个类,以得到与web浏览器相关的预期函数。
For instance, you need to set up a couple of classes to get the expected function associated with a web browser.
既然它们已经被定义完毕,我们不妨来实施单元测试来执行函数及小部件以确保它们能像预期的那样运行。
Now that they have been defined, it would be great to implement unit tests that exercise the functions and the widgets to confirm they behave as expected.
假设未来预期收入保持不变,画一个以家庭消费与库存现金的函数图---库存现金等于目前的收入加上流动资产。
Suppose we were to graph a household's consumer spending as a function of cash-on-hand, which equals current income plus liquid assets, holding constant expected future income.
对于诸如世界状态以及智能体行为是否按照预期进行的可能性这类问题,效用函数通常要结合概率进行处理。
Utility functions are usually combined with probabilities about things like the state of the world and the likelihood that the agent's actions will actually work in the expected way.
要查看性能是否还可以接受,您可能想对预期查询应用一些基本数学函数,当然,还要在您的环境中测试那些查询。
To see if performance is acceptable, you may want to apply some basic math to anticipated queries and, of course, test them in your environment.
一旦这些不同的函数(例如概率分布)都被掌握,智能体就会很容易判断哪一种行为会让预期效用最大化,并据此选择正确的行为。
Once these different functions (such as the probability distribution) are learned, the correct action to take is simply a matter of deciding which action maximizes the "expected utility" of the agent.
EXTRACT函数是选择一组值的非常高效的方法,但是如果预期的结果集只是单一对象,那么最好使用前面介绍的choose函数。
The EXTRACT function is a very efficient way to select a group of values, but if the expected result set is just a single object then you are better off using the CHOOSE function previously discussed.
当以迭代方式迁移系统时,开发人员应该将DB 2中已迁移的函数与mysql源系统进行对比,确保特定的工作单元运行结果与预期的一样。
As you iteratively migrate the system, developers should compare the migrated function in DB2 against the original MySQL source system to ensure that specific units of work performed as expected.
考虑Boolean函数转换成字符串以及再转换回来时会出现的非预期结果。
Consider the unexpected result when a Boolean function is converted to a string and back again.
出于演示目的,我们略去了所有次要的函数,假定它们存在而且按预期执行。
For demonstration purposes, we've left out all of the subordinate functions, assuming that they exist and that they perform as expected. Here is the code for our report printer.
正如您预期的一样,实际上全部的处理时间(70,989毫秒的99.87%)都花费在3193次对fib函数的调用上了。
As you might expect, virtually all the processing time (99.87 percent of the 70,989 milliseconds) was spent executing 3,193 invocations of the function fib .
它定义了一个c语言的函数来完成预期的任务,然后又将它作为一个Perl函数来处理。
It defines a C-language function to do the expected action, and then it treats it as a Perl function thereafter.
在调用此构造函数时,字段将被传入,构造函数将检查字段来确定其是否与预期字段匹配,如果不匹配则抛出一个错误。
When the constructor is called, the fields being passed are checked to determine whether they match the expected fields, and an error is thrown if not.
在XPath表达式中,比较字符串和Boolean函数会得到非预期的结果。
In an XPath expression, comparing a string and a Boolean function can yield unexpected results.
如果不能确定为何函数没有按预期工作,用printf或类似的工具在控制台上打印几个变量就可以了解幕后发生了什么。
When you aren't quite sure why a function doesn't behave as expected, print a few variables to the console with printf or its equivalent to see just what's going on.
在函数激活的时候,我们看到了正确(预期)的结果:30,但是,这里有一个很重要的特点。
At function activation, we see correct (and expected) result - 30. However, there is one very important feature.
返回代码指出函数是否如预期的那样执行。
It indicates whether the function executed as expected. Table 6 lists the possible return codes that can be returned by any ODBC function.
另外,此函数还预期frompath变量将引用正确的常规文件。
It is also expected that the frompath variable would refer to a proper regular file.
由程序自动形成节点导纳矩阵和求取逼近函数作为设计的预期响应。
The node admittance matrix and approximate function (as an expected response) are formed automatically by the program.
当有一个以上的内部函数时,闭包产生的效果可能没有预期所想像的那样简单。
When more than one inner function exists, closures can have effects that are not as easy to anticipate.
测试结果表明,软件基本达到预期效果,在函数自动建模方面作了有益的尝试。
The results show that the software achieves the desired effect, and do some beneficial attempt in the automatic function modeling.
所以确保你在你的数据库有一个函数,它返回预期的结果。
So make sure you have a function in your database, which returns the desired result.
所以确保你在你的数据库有一个函数,它返回预期的结果。
So make sure you have a function in your database, which returns the desired result.
应用推荐