-
素数分解的MillerRabin+pho算法
使用c++的素数分解模板,可以分解2^64范围的数字。一般用于ACM竞赛模板,具体使用情况比较简单易用。程序主体使用pho以及squefof分解算法,中间不断使用米勒罗宾监测素数。分解过程主要在于猜测素数的位置逐个测试,也算是分解效率比较高的算法之一。用于ACM竞赛中还是比较好用比较能A题的一个版了。
- 2022-07-20 21:16:56下载
- 积分:1
-
AC-BM算法的实现的压缩包,很流行的字符串匹配算法,已经测试,-AC-BM algorithm for the realization of the compressed, the very popular string matching algorithm has been tested,
- 2022-02-02 16:56:07下载
- 积分:1
-
神经网络优化算法
BP学习算法具有结构简单、参数可调、可操作性好等优点,虽然BP神经网络是人工神经网络中应用最广泛的算法,但也存在一些缺陷,如学习收敛速度太慢。利用遗传算法对神经网络的网络结构、初始连接权值和阈值选取进行优化。
- 2022-03-02 08:27:42下载
- 积分:1
-
创建多维数据集和投影
此示例程序演示如何使用运算符projective_trans_object_model_3d 在成功的决窍。在此示例中一些多维数据集是通过不同的方式创建的。在那之后,多维数据集是与投影得到转型。
- 2022-11-05 21:20:03下载
- 积分:1
-
math.net收入数学C #实现具体功能:
Math.NET开源数学库
C#实现
具体功能:
- A linear algebra package, see MathNet.Numerics.LinearAlgebra.
- A sparse linear algebra package, see MathNet.Numerics.LinearAlgebra.Sparse.
- Non-uniform random generators, see MathNet.Numerics.Generators.
- Distribution fonctions, see MathNet.Numerics.Distributions.
- Statistical accumulator, see MathNet.Numerics.Statistics.
- Fourier transformations, see MathNet.Numerics.Transformations.
- Miscellaneous utilies (polynomials, rationals, collections).-Math.NET revenue math C# achieve specific functions :- A linear algebra package, see MathNet.Numerics.LinearAlgebra.- A spar se linear algebra package, see MathNet.Numerics.LinearAlgebra.Sparse .- Non-uniform random generators. see MathNet.Numerics.Generators.- Distribu tion fonctions. see MathNet.Numerics.Distributions.- Stati stical accumulator, see MathNet.Numerics.Statistics.- Fourier t ransformations. see MathNet.Numerics.Transformations.- Mis cellaneous utilies (polynomials. rationals, co
- 2022-01-31 12:13:31下载
- 积分:1
-
//=== === === === === === =====
//函数说明
//函数名称:Correlation
//函数功能:计算最小二乘法拟合...
//=== === === === === === =====
//函数说明
//函数名称:Correlation
//函数功能:计算最小二乘法拟合的多项式的相关系数
//使用方法:int M------拟合多项式的项数(已知条件)
// double *b---拟合曲线的系数,按升次排列(已知条件)
// double *x---结点x轴数据(已知条件)
// double *y---结点y轴数据(已知条件)
// double *Yg--结点估计值,与*y相对应,个数为m(过程变量)
// int m------结点个数(已知条件)
//注意事项:多项式阶数最高为10,多项式的形式为 y = b0 + b1*(x-Xavr)...
-//=== === === === === === === === === === === =====// Function that// function name: Correlation// Function: Calculation of the polynomial least squares fitting correlation coefficient// Usage: int M------ polynomial fitting the number of (known conditions)// double* b-- Fitting curve coefficient, or times by arrangement (known conditions)// double* x--- node x-axis data (known conditions)// double* y--- node y-axis data (already known conditions)// double* Yg- the estimated value of node, and* y correspond to the number for m (process variables)// int m------ node number (known conditions)// Note: polynomial order up to 10, the polynomial
- 2023-05-06 14:40:03下载
- 积分:1
-
多元线性回归分析算法
多元线性回归分析算法-multiple linear regression analysis algorithm
- 2022-05-07 22:58:57下载
- 积分:1
-
GPS硬校时程序
资源描述IRIG(Inter Range Instrumentation Group)码是美国靶场司令委员会制定的一种时间标准,共有4种并行二进制时间码格式和6种串行二进制时间码格式。其中最常用的是IRIG-B时间码格式。B码可以分为直流(DC)码和交流(AC)码,交流码是1 kHz的正弦波载频对直流码进行幅度调制后形成的;直流码采用脉宽编码方式。每秒1帧,含100个码元,每个码元宽度为10ms。码元有3种,位置标识符的脉宽是8ms(位置标识P0~P9和参考标志Pr),二进制“1”和“0”的脉宽分别为5 ms和2ms。
每帧从参考标志Pr开始,也就是连续两个8 ms脉冲中的第2个8 ms脉冲的前沿开始,分别为Pr,第0,1,…,99码元。在Pr和P5之间是BCD字段,传送的是BCD码格式的时间信息(包含秒、分、时、天4种信息),低位在前,高位在后;个位在前十位在后。在P5和P8之间是CF字段,实现控制功能,可根据实际使用时的协议制定使用方法,在这里没有用到该字段。在P5和P8之间是SBS字段,是用二进制表示的以秒(s)为单位的时间信息。
- 2022-02-16 07:13:33下载
- 积分:1
-
矩阵运算
// 矩阵乘法: C=AB, A[m×v], B[v×n], C[m×n] ... for row-major matrices
// 允许A,B,C 带入相同参数.
double* matr_x(double*C, const double*Ao, const double*Bo, const int m,const int v, const int n){
if(!Ao || !Bo) return 0; if(!C) C=new double[m*n];
double* A=new double[m*v], * B=new double[v*n];
memcpy(A,Ao,m*v*sizeof(double)); memcpy(B,Bo,v*n*sizeof(double));
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-07 01:39:24下载
- 积分:1
-
糊涂先生给他的五个朋友写信,他写了五封信,但是当他的朋友收到信后,都告诉他:“你的信寄错了”。那么请你计算一下:出现这种情况的概率有多少?(假设糊涂先生是随机地...
糊涂先生给他的五个朋友写信,他写了五封信,但是当他的朋友收到信后,都告诉他:“你的信寄错了”。那么请你计算一下:出现这种情况的概率有多少?(假设糊涂先生是随机地往信封里装信的),你能不能把所有的情况都列出来呢?-confused to his five friends in a letter he wrote five letters, but when his friend received the letter, had told him : "You sent a letter wrong." Then you do some calculations : this happens the probability is the number? (Assuming confused is randomly installed to envelope the letter), you can put all the cases listed?
- 2022-01-27 21:28:49下载
- 积分:1