-
输入一个长整数,不使用字符转换,检查是否为对称数, 是显示 TRUE,否显示FALSE....
输入一个长整数,不使用字符转换,检查是否为对称数, 是显示 TRUE,否显示FALSE.-Enter a long integer, do not use character conversion, check whether the symmetry is to show TRUE, any signs FALSE.
- 2022-03-26 04:53:36下载
- 积分:1
-
基于鱼群算法的函数寻优算法
基于鱼群算法的函数寻优算法,大家可以参考一下,对于大家熟悉鱼群算法有帮助。人工鱼群算法是李晓磊等人于2002年提出的一类基于动物行为的群体智能优化算法.该算法是通过模拟鱼类的觅食、聚群、追尾、随机等行为在搜索域中进行寻优,是集群体智能思想的一个具体应用.
- 2022-10-30 08:35:03下载
- 积分:1
-
给出集合类的定义,可模拟实现集合的交集,并集运算,并可以插入,删除元素...
给出集合类的定义,可模拟实现集合的交集,并集运算,并可以插入,删除元素-is set class definition can be simulated to achieve the intersection and set computing, and can be inserted, deleted elements
- 2022-12-13 16:40:03下载
- 积分:1
-
这是学校ACM程序设计大赛的题目,拿出来大家算是当练习
这是学校ACM程序设计大赛的题目,拿出来大家算是当练习-This is the School ACM Programming Contest topic out when everyone is practicing
- 2022-07-14 06:11:47下载
- 积分:1
-
这个图书馆对多项式定义的基本操作,并包含3不同…
This library defines basic operation on polynomials, and contains also 3 different roots (zeroes)-finding methods that can handle quite large polynomials (>1000 coefs)
Implemented in ANSI C++ Templates. Handles all real and complex floating point types. Html doc is included.-This library defines basic operation on polynomials, and contains also 3 different roots (zeroes)-finding methods that can handle quite large polynomials (>1000 coefs)
Implemented in ANSI C++ Templates. Handles all real and complex floating point types. Html doc is included.
- 2022-01-22 15:11:18下载
- 积分:1
-
定位算法在传感器网络中的 改进策略
资源描述本文首先在查阅和参考大量国内外相关文献的基础上,介绍了无线传感器网
络节点定位技术的研究背景及意义,综述了国内外研究现状,并详细介绍了无线
传感器网络中一些典型的无需测距定位算法和系统。
传统DV-Hop 算法采用较少的锚节点参与平均跳距计算,未知节点使用此平均
跳距值误差大,为了减小DV-Hop 算法的定位误差,提高待定位节点的定位精度,
本文从以下三方面对其进行改进:针对DV-Hop 定位算法适应节点均匀分布的网络
这一特性,在算法的前期提出了节点的部署策略;针对平均每跳距离在求各种跳
数的节点之间的距离时有着不同程度的影响,在算法的中期提出了距离修正值策
略;针对用三边或多边测量法计算未知节点的坐标精度不高这一问题,在算法的
后期使用了具有交叉因子的粒子群算法这一策略
使用Omnet++和Matlab 仿真工具对提出改进算法的有效性进行验证。实验证
明,与DV-Hop 算法相比,三种改进算法的定位精度都得到了一定程度的提高,特
别是基于交叉因子粒子群定位时效果最佳,能更好地满足实际应用的需求。
关键词:无线传感器网络,节点定位技术,距离向量-跳段,平分四块部署,距离
修正,交叉粒子群优化算法
- 2022-11-10 18:25:04下载
- 积分:1
-
该程序用于解决生产计划问题,生产计划问题是运筹学中一个重要问题。...
该程序用于解决生产计划问题,生产计划问题是运筹学中一个重要问题。-the procedures for the settlement of production planning, production planning operations research, which is an important issue.
- 2022-10-10 10:30:02下载
- 积分:1
-
DBSCAN算法
% Function: [class,type]=dbscan(x,k,Eps)
% -------------------------------------------------------------------------
% Aim:
% Clustering the data with Density-Based Scan Algorithm with Noise (DBSCAN)
% -------------------------------------------------------------------------
% Input:
% x - data set (m,n); m-objects, n-variables
% k - number of objects in a neighborhood of an object
% (minimal number of objects considered as a cluster)
% Eps - neighborhood radius, if not known avoid this parameter or put []
% -------------------------------------------------------------------------
% Output:
% class - vector specifying assignment of the i-th object to certain
% cluster (m,1)
% type - vector specifying type of the i-th object
% (core: 1, border: 0, outlier: -1)
- 2022-04-08 08:12:27下载
- 积分:1
-
/ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = /功能annot
//=== === === === === === === =
//函数说明
//函数名称:PolyFit
//函数功能:最小二乘法曲线拟合
//使用方法:double *x ---- 存放n个数据点的X坐标
// double *y ---- 存放n个数据点的Y坐标
// int n -------- 给定数据点个数
// double *a ---- 返回m-1次拟合多项式的m个系数
// int m -------- 拟合多项式的项数,即拟合多项式的最高次为m-1。要求m20,则本函数自动按m=min{n,20}处理
// double *dt --- dt[0]返回拟合多项式与各数据点误差的平方和;dt[1]返回拟合多
// 项式与各数据点的误差绝对值之和;dt[2]返回拟合多项式与各数据
// 点误差绝对值的最大值
//注意事项:拟合多项式的形式为 y = b0 + b1*(x-Xavr)...
-//=== === === === === ==== === === === === === === ==== === =// function annotations// function name : PolyFit// Function functions : Least Squares Curve Fitting// Use : double* x n-store data point coordinates of the X//* y double-storage n data point Y coordinates// int n-------- given the number of data points//* a double---- returned to the m-1 m fit polynomial coefficients// int m-------- polynomial fitting items , which is the highest polynomial fitting time for m-1. Request m
- 2023-07-25 11:15:03下载
- 积分:1
-
存貨途程問題模式
純粹為存貨途程問題程式碼沒有使用任何演算法
- 2022-11-24 23:15:03下载
- 积分:1