-
判断点是否处于多边形内的最佳方法(适用于任意多边形包括凹凸边形)
本例子在VC6.0上编写了判断点是否处于多边形内的最佳方法,它和一般的叉乘判别法,角度判别法,面积判别法不同,它适用于任意多边形(包括凹凸边形)。它的基本思想就是:假设需要判定的点P,通过点P水平向左做射线,如果P在多边形内部,那么这条射线与多边形的交点必为奇数,反之,交点个数为偶数。所以,我们可以顺序考虑多边形的每条边,求出交点的总个数。当然,存在一些特殊情况,例如射线刚好和多边形端点相交。对于一些特殊情况,算法也有所考虑,并一一解决。具体见算法里的注释即可。
- 2022-01-31 11:10:31下载
- 积分:1
-
cuda实现矩阵相乘实例
CUDA矩阵相乘A*B=C代码,任意输入矩阵A的宽度和矩阵B的宽度(A[wB][wA]*B[wA][wB]),cudaMallocPitch开辟显存空间,cudaMemcpy2D数组复制,Kahan"s Summation Formula提高浮点计算精度。
- 2022-06-16 18:04:10下载
- 积分:1
-
采用按列消去,舍入误差并没得到很好的处理,有待改进。
采用按列消去,舍入误差并没得到很好的处理,有待改进。-adopted by the elimination series, rounding error not been handled well, in need of improvement.
- 2022-06-16 07:55:02下载
- 积分:1
-
德algoritmo线段树的C++
应用背景algoritmo de Párbolárrafo segmento一枚de programacion competitiva,Esto ESTA登特鲁deláREA de estructura de药物,ES MUY util Cuando●找到operaciones登特鲁de la ONU Rato y PáRR ello我们有不同consultas。关键技术ES MUY usado EN洛杉矶一枚de programacion competitiva鸦鹊帮助de朗戈斯solucionar穆察司consultas EN联合国载体SER阙可以单向多维EL algoritmo de线段树,雅阙SE aplica de La misma变型对位砧骨。
- 2022-01-25 21:17:06下载
- 积分:1
-
线性方程组的求解
线性方程组的求解
- 2022-03-19 12:02:35下载
- 积分:1
-
It is the DOS environment to develop a mathematical calculation software, the ma...
它是在DOS环境下开发的数学计算软件,菜单中主要的一种是“有限元法”,使用的编程语言是C语言,解压无需密码。-It is the DOS environment to develop a mathematical calculation software, the main menu is a "finite element method", the use of the C programming language is the language, extract no password is required.
- 2023-01-04 08:40:03下载
- 积分:1
-
c# rsa algorithm encryption/decryption
RSA加密和解密C#实现公钥和私钥是预定义的。浏览要加密或解密的文件。
- 2022-06-18 22:48:56下载
- 积分:1
-
对称对称计算的矩阵特征值与特征向量…
矩阵特征值和特征向量的计算关于对称矩阵的对称对角矩阵的何氏黑米荣变换它的对称三对角矩阵的所有特征值,特征向量的计算
- 2022-08-15 11:09:50下载
- 积分:1
-
很简单的程序,可以远程通过MDL laserace300火激光测距仪…
Very simple program that can fire laser rangefinder MDL laserACE300 remotly via rs232 and register output to file - work only with this type and ither my programs can fire many MDL s-Very simple program that can fire laser rangefinder MDL laserACE300 remotly via rs232 and register output to file- work only with this type and ither my programs can fire many MDL s
- 2023-08-06 17:55:03下载
- 积分:1
-
Abstract: This paper aims to study a thermal complex objects can be an effective...
摘要:本文旨在研究一种能对复杂热工对象的有效建模方法。基于遗传算法的辨识方法有较强的抗干扰能力,对低、高阶系统、延时系统都可以达到很好的辨识效果。根据单元机组的低阶非线性模型,推导出一个双进双出、能够描述机组动态特性及机炉间相互耦合关系的协调控制系统传递函数矩阵。依次模型为基础,提出一种基于改进的遗传算法的参数辨识方法。-Abstract: This paper aims to study a thermal complex objects can be an effective modeling method. Identification method based on genetic algorithm has strong anti-jamming ability, low, high-end systems, delay systems can achieve very good recognition results. According to unit power plant low-level non-linear model, derived a double inlet and outlet, can describe the dynamic characteristics and boiler-turbine unit is coupled between two relations, coordination and control system transfer function matrix. Turn model was proposed based on improved genetic algorithm based on parameter identification method.
- 2022-01-24 09:15:33下载
- 积分:1