-
5
说明:
★问题描述:
给出平面上的N 个二维点,求出距离最小的2 个点对。本题中距离定义为他们的直
线距离。例如(0,0) (3,4)的距离为5.
★数据输入:
有多组数据,对于每组数据,第一行是一个数字N 表示点的个数。N=0 的时候说明
输入结束。之后N 行,每行有2 个浮点数x_i,y_i 表示第i 个点的坐标。(1<=N<=10000
0,0<=|x_i|,|y_i|<=10^9)
★结果输出:
输出一个浮点数,表示最近点对的距离除以2,保留2 位小数(四舍五入)。
- 2013-12-03 14:57:02下载
- 积分:1
-
total-least-square
加权总体最小二乘算法在直线拟合拟合的应用,算法为方兴博士论文中的算法1(total least square linear fitting)
- 2015-08-11 18:31:06下载
- 积分:1
-
kriging
包括基本的克里金(Kriging)插值法实现代码,仅实现基本方法部分,不包含扩展克里金方法( kriging uses ordinary kriging to interpolate a variable z measured at
locations with the coordinates x and y at unsampled locations xi, yi.
The function requires the variable vstruct that contains all
necessary information on the variogram. vstruct is the forth output
argument of the function variogramfit.
This is a rudimentary, but easy to use function to perform a simple
kriging interpolation. I call it rudimentary since it always includes
ALL observations to estimate values at unsampled locations. This may
not be necessary when sample locations are not within the
autocorrelation range but would require something like a k nearest
neighbor search algorithm or something similar. Thus, the algorithms
works best for relatively small numbers of observations (100-500).
For larger numbers of observations I recommend the use of GSTAT.
Note that kriging fails if there are two or more observa)
- 2015-01-08 15:43:50下载
- 积分:1
-
mosqp
MATLAB,多目标优化,使用SQP算法(MATLAB, multi-objective optimization using SQP Algorithm)
- 2017-02-14 09:18:47下载
- 积分:1
-
fftwuserdll
fftw 快速傅里叶变换, C#算法 直接调用dll(fftw fuliye bianhuan C# suanfa zhijie dianyong dll wenjian zhijie daoru fangzai bin wenjian jia zhong)
- 2020-06-20 13:20:01下载
- 积分:1
-
数值分析(超清晰版)
说明: 本书是为理工科大学各专业普遍开设的“数值分析”课程编写的教材 . 其内容包括插值与逼近 ,数值微分与数值积分 , 非线性方程与线性方程组的数值解法 , 矩阵的特征值与特征向量计算 , 常微分方程数值解法 . 每章附有习题并在书末有部分答案 ,书末还附有计算实习题和并行算法简介 . 全书阐述严谨, 脉络分明 ,深入浅出 ,便于教学 .(This book is a textbook for the course of "numerical analysis" which is widely offered in various majors of universities of science and engineering. Its contents include interpolation and approximation, numerical differentiation and numerical integration, numerical solution of non-linear and linear equations, calculation of eigenvalues and eigenvectors of matrices, numerical solution of ordinary differential equations. At the end of the book, there are some answers. At the end of the book, there are also a brief introduction of computational practice questions and parallel algorithms. The whole book elaborates rigorously, clearly, thoroughly and shallowly, which is convenient for teaching.)
- 2019-07-01 12:51:46下载
- 积分:1
-
新编Marc有限元实例教程
编程教程,帮助入门学者学习建模,从初级开始,逐步深化,非常有帮助(Programming tutorials, help beginners learn modeling, from the beginning, gradually deepen, very helpful)
- 2019-01-14 19:19:06下载
- 积分:1
-
ieee33
应用牛顿法的直角坐标系下的33节点潮流计算(33 node flow calculation)
- 2011-08-03 15:21:50下载
- 积分:1
-
NonCVX_MC
基于凸优化算法的矩阵填充稀疏矩阵理论的Matlab实现。(Based on convex optimization algorithm of matrix fill sparse matrix theory Matlab achieve.)
- 2020-12-07 10:39:22下载
- 积分:1
-
regrRR
Ridge Regression RR 岭回归估计,是非常有用的非线性时间序列算法,在局部多项式预测中非常有用。(Ridge Regression RR ridge regression estimates, it is useful to nonlinear time series algorithms, in Local Polynomial prediction in very useful.)
- 2008-07-24 15:50:34下载
- 积分:1