由app/helpers/pages_helper.rb 中的 helper函数来完成这一工作,从而保持视图的最小化(请参阅清单12)。
A helper function in app/helpers/pages_helper.rb does the heavy lifting, keeping the view minimal (see Listing 12).
它使所需的代码量最小化,因为它有许多内置功能,这样您就不再需要为这些功能编写客户端函数或对象了。
It minimizes the code you need to write, because it has many built-in features that you would otherwise need to write custom functions or objects for.
第20行的目标函数要对食物的总体成本实现最小化,该值是每个决策变量(食物数量)乘以每单位食物成本的结果。
The objective function on line 20 minimizes the total food cost as the total of each decision variable (amount of food) multiplied by that food's cost per unit.
注意这种改进依赖于我们的目标是要对目标函数进行最大化还是最小化。
Note that the improvement depends on whether the goal is to minimize or maximize the target function.
如果该字符完成了一个函数,编辑器允许函数折叠以最小化文本空间。
If the character completes a function, the editor enables subroutine folding to minimize the text space.
一开始导入需要模块和注册不同的函数去创建个体(浮点数列表),求解的是一个最小化二目标适应度问题。
First import the required modules and register the different functions required to create individuals that are lists of floats with a minimizing two objectives fitness.
在设计控制系统时,滑模控制滑模面通过最小化最优价值函数得到,控制器采用饱和控制器。
In the process of control design, the sliding surface of sliding mode control is determined by minimizing the optimal cost function, and the controller is the saturation controller.
最好的工作点可以被定义为一个最小化或最大化的效用函数。
The best operating point can be defined as the one that minimizes or maximizes the utility function.
通过最小化能量方案极小化代价函数,同时通过定点交替迭代策略将非线性方程进行线性化处理,快速恢复图像。
The cost functions are minimized by alternate minimization scheme. The nonlinear equations are linear by fixed-point iteration scheme.
反问题的解在正问题的基础上通过共轭梯度法最小化目标函数得到。
The inverse solution was obtained through minimizing the object function using CGM based on the direct problem.
本文描述一个多输出逻辑函数的最小化算法。
This paper describes a minimization algorithm for multiple output functions.
主要包括模型的描述方法,模型的能量函数组成,能量最小化方法以及活动轮廓模型在应用中的局限之处。
It includes the representation of the model, the composition of the model's energy function and it's minimum, and the limitations in application.
通过最小化频域平方误差函数并揭示与设计问题有关的一些矩阵的性质,得到了滤波器系数的闭式解。
A closed-form solution for filter coefficients is obtained by minimizing the frequency-domain squared-error function and revealing some properties of the matrices related to the design problem.
以JK触发器为例,提出了一种基于触发器行为的J、K激励函数的最小化技术。
Taking JK flip-flop as an example, a minimization technique of J and K excitation functions based on behaviors of flip-flop was proposed.
数学上通过能量度量最小化把这些问题转化成变量或函数的最优化问题。
The minimization of some energy measure translates some problems into an optimization problem depending on the unknown variables (which are function) in mathematics.
利用生产函数和假定成本最小化建立了能源需求函数,并对1979~2000,1979~1992和1993~2000年中国能源需求函数进行了估计。
With the production function and cost theory, the energy demand function was built, and the energy demand functions of China in 1979 - 2000, 1979-1992, and 1993 - 2000 were estimated.
作者根据约束性代价函数原理提出了能够使得截断误差最小化的中心差分优化算子。
This paper presents an optimization of centered finite-difference operator based on the principle of constrained cost function, which can reduce the truncation error to minimum.
论述了这些算法的代价函数最小化问题,并对它们的收敛性作出了简单的分析。
This paper overviews some commonly used cost function of the adaptation algorithms that minimize them and analyse convergence simply.
采用输出信号的广义高斯分布近似,基于互信息最小化目标函数自适应调整均衡器的系数。
Based on method of minimizing of mutual information and approximated generalized Gaussian distribution of equalized output signal, the equalizer changes its coefficients adaptively.
R BF网络的设计问题就是关于网络隐节点数和隐层节点RBF函数中心、宽度和隐层到输出层的权值的性能指标的最小化问题。
The RBF network configuration is formulated as a minimization problem with respect to the number of hidden layer nodes, the center locations and the connection weights.
针对干涉数据质量不同的区域采取不同的展开策略,在最小二乘意义下利用有限元方法最小化不同的代价函数来实现。
Different strategies for regions were taken with different data quality, minimizing different cost functions in a least square sense via the finite element method (FEM).
本文证明DC函数最小化问题邻近点算法的一个收敛性定理,并对此问题提出一类非精确邻近点算法。
In this paper we prove a convergence theorem of the proximate point algorithm for minimization of DC function, and propose a kind of inexact proximate point algorithm for the minimization problem.
研究了空气流动速度、肋片排列方式以及几何尺寸对散热器综合换热性能的影响,并且以最小化F为目标函数优化了散热器。
The influence of air velocity, heat sink configuration and dimension on the heat transfer performance is studied. Minimum F is considered as objective function to optimize the heat sink.
文中给出两种活动轮廓模型,其中一种基于边缘停止函数,而另一种是一个能量最小化算法。
Two active contour models, one based on an edge-stopping function, while the other is an energy minimization algorithm, are demonstrated.
所以,即使在定义域内没有典型的单点能同时最大限度地最小化所有的目标函数,也只有一个解决方案可以选择。
Even though there is typically no single point in decision space that simultaneously minimizes all of the objective functions, only one solution can be chosen.
在一些模型假设的基础上,建立了目标函数为最小化运距的客户订单合成配送问题的数学模型,提出并实现了解决该问题的遗传算法。
A mathematical model of customer order consolidation delivery problem is introduced based on some model hypothesis, in which the objective is to minimize the transportation distance.
通过在规定的试验区域内对此函数进行最小化,能够得到一组合理的可控变量组合,从而达到多响应优化的目的。
By minimizing the improved distance function over a fixed experimental region, a group of reasonable input variables are obtained so that...
对于参数的学习,提出了一种适用于分类器的可微经验风险函数,该函数能够有效地利用梯度下降法进行最小化。
For the learning process, a new kind of empirical risk function is proposed which is differentiable and can be minimized by gradient descent strategy.
该模型求解时,首先通过引入代理函数将原问题解耦为残差的加权范数最小化和加权范数TV去噪这两个子问题;
Using surrogate function, we split the sum minimization scheme to the minimizing weighted least square function and TV denoising with weighted norm iteratively.
本文基于费用函数最小化方法,提出一种混合并行量子进化算法用于文本图像的边缘检测。
In this paper we present a hybrid parallel quantum evolutionary algorithm (PQEA) based on cost minimization technique for edge detection.
应用推荐