-
贝塞尔曲线示例
#include < iostream >
#include < 矢量 >
#include < math.h >
#include"BezierPoint.h"
使用命名空间 std ;
BezierPoint 贝塞尔 (方法 < BezierPoint > & pts,双 t) ;
双选择 (双 a,双 b) ;
双 factorial(double num) ;
int main(void) {
方法 < < BezierPoint >> 方法警校 ;
char endPointCount = 0;
双 inx ;
双 iny ;
int ptCount = 0;
int 终结点 ;
双 deltaT ;
cin >> ptCount >> deltaT ;
为 (int 我 = 0 ; 我 < ptCount; i + +) {
cin >> inx >> iny >> 终结点 ;
BezierPoint p iny inx) ;
如果 (endPointCount = = 0 & & 终结点 = = 1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
继续 ;
}
pts[pts.size()-1].push_back(p) ;
如果 (endPointCount! = 0 & & 终结点 = = 1 & & 我! = ptCount-1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
}
}
为 (std::s
- 2022-03-13 19:08:01下载
- 积分:1
-
图形的广度优先搜寻法
图形的广度优先搜寻法-graphics breadth priority search method
- 2022-04-18 06:56:09下载
- 积分:1
-
equals,length,trim,c语言toolkit
不用c库实现的c语言功能函数,包含length函数、equals函数、和trim函数,还会慢慢增加
- 2022-06-21 08:18:21下载
- 积分:1
-
该程序是用C语言写的采用了动量方法的BP神经网络,它具有极其强大的扩展性,可用于函数的逼近及分类识别等各方面,语言书写规范,其中大量使用了动态分配一、二维数组的...
该程序是用C语言写的采用了动量方法的BP神经网络,它具有极其强大的扩展性,可用于函数的逼近及分类识别等各方面,语言书写规范,其中大量使用了动态分配一、二维数组的方法,该网络实例中实现的是对某一函数的逼近,输入层为二层,中间层可自己设定多达十几层,逼近精度非常精确。读者可根据自己的需要设定各层的数目以及相应的训练样本进行训练与测试。-The program is written in C language using the momentum method of BP neural network, which has extremely powerful scalability, can be used for function approximation and classification in areas such as language specification, including large-scale use of a dynamically allocated one, two dimensional array of methods, examples of the network realize that the approximation of a function, for the second input layer, middle layer can be set as many as a dozen layers, close to very precise accuracy. Readers may need to be set in accordance with its own number of floors and the corresponding training samples for training and testing.
- 2022-09-23 15:35:02下载
- 积分:1
-
stitching for wireless sensor network
stitching for wireless sensor network
- 2023-08-22 00:15:04下载
- 积分:1
-
公有继承举例
公有继承的举例,派生类的声明,通过派生类对象访问基类的公有成员。
- 2022-02-16 04:06:40下载
- 积分:1
-
利用变步长来计算积分,该算法中用到步长的折半方法。
利用变步长来计算积分,该算法中用到步长的折半方法。-use variable step to calculate integrals, the algorithm uses the half step method.
- 2022-06-20 02:56:02下载
- 积分:1
-
机器人RBF神经网络
资源描述单关节机器人控制的RBF神经网络的控制跟踪程序。
- 2022-06-28 00:14:22下载
- 积分:1
-
模运算MOD的相关运算
用于密码学最最基本的模运算中,或者是说信息安全数学基础中的相关运算。
不仅仅有代码,还有相关的PDF文档的说明,希望能对密码学的初学者有帮助。
- 2022-04-14 22:59:32下载
- 积分:1
-
四色方柱问题(Instant Insanity)的求解算法
四色方柱问题(Instant Insanity)的求解算法-four-color side (Instant Insanity) algorithm
- 2022-03-04 09:18:34下载
- 积分:1