第3章TDC-3000和TPS/PKS集散控制系统 ②数组点(Array Point)是 APM 内部变量的逻辑组,可以用 于存储计算变量或批量控制的配方数据,也可作为控制策 略、本地数据采集和历史数据存储的数据源。
基于26个网页-相关网页
顶点数组 Vertex Array
模组点数 Module Pixels ; Module Points
顶点数组对象 VAO ; Vertex Array Object
数据节点组 data node group
浮点式数组处理机 floating point array processor
节点数组 node array
设置浮点数数组元素 androidjni.setfloatarrayelement ; SetFloatArrayElement
从双精度浮点数数组 FromDoubleArray
获取浮点数数组元素 androidjni.getfloatarrayelement ; GetFloatArrayElement
不过,我们在这里构造的字节数组并不是很正确,我们将在下一节看到这一点。
However, the byte arrays we've constructed here aren't quite right, as we'll see in the next section.
add_edges方法根据一系列的点创建一个edge对象数组。
The add_edges method creates an array of edge objects from a sequence of points.
其中有一点微不足道的差别:现在将在一张列表内而不是在数组中循环,这将导致需要在循环控制中执行一些小更改。
One of the differences is trivial: You're now looping over a list rather than an array, which causes minor changes in the loop control.
It says, well I'm going to print out first and last just so you can see it, and then I say, gee 2 if last minus first is less than 2, that is, if there's no more than two elements left in the list, then I can just check those two elements and return the answer.
然后它计算了尾点和开始点的差,如果小于2的话,也就是说数组中的元素小于等于,我对这两个元素进行比较,然后返回结果就可以了,否则的话,我们就去寻找中值点,注意它是怎么实现的,首先这个指向一个列表的开头。
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
And I keep cutting the problem down.
那么我应该选取数组中的哪个点呢?
应用推荐