登录
首页 » Visual C++ » knn-code

knn-code

于 2012-04-13 发布 文件大小:4KB
0 391
下载积分: 1 下载次数: 7

代码说明:

  给定一个样本集exset,样本数为M,每个样本点是N维向量,对于给定目标点d,d也为N维向量,要从exset中找出与d距离最近的k个点(k

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • small_image
    MATLAB实现的高光谱图像的端元提取,可以自己下载高光谱图像,然后修改下程序就能用了。(MATLAB implementation of hyperspectral image endmember extraction of hyperspectral images can download and modify the following program can be used.)
    2021-04-19 20:58:51下载
    积分:1
  • example4_3
    例3:分析占空比为ta的矩形脉冲频谱 T=1 时间窗大小 ta=0.5 占空比 N=256 t=linspace(-T,T,N) ts=2*T/N fs=1/ts (x=zeros(1,N) x(N/2-round(N/2*ta):N/2+round(N/2*ta))=ones(1,2*round(N/2*ta)+1) y=fft(x,N) figure plot(t,x) title([ 时域信号图 占空比为 ,num2str(ta)]) axis([-T T-0.2 1.2]) xlabel( t /s ) figure subplot(211) f=linspace(-fs/2,fs/2,N) plot(f,abs(fftshift(y))/N) title([ 矩形脉冲双边谱 脉冲时间t=[- ,num2str(ta*T), , ,num2str(ta*T), ] ]) xlabel( f /Hz ) )
    2010-05-25 20:59:59下载
    积分:1
  • 2222
    与marlab有关的牛顿插值问题 很经典的例程 给广大爱好者一臂之力(With marlab the classic Newton interpolation routines to large hand fans)
    2010-05-12 00:28:30下载
    积分:1
  • GARAGEPROGRAM
    car garage management ,with GUI
    2014-10-12 23:51:59下载
    积分:1
  • simmm1
    MMM1排队系统建模与仿真,可以用MATLAB运行,有2个仿真图(MMM1 queuing system modeling and simulation, you can use MATLAB to run, there are two simulation charts)
    2010-12-28 07:25:49下载
    积分:1
  • modem-gprsv-R57_G_10.06.42I-r2.tar
    一个有关GMSK基带调制和实现的MATLAB程序,自己编写的,请高手指教! (on a GMSK baseband modulation and realization of the MATLAB program, the preparation of their own, experts advise.)
    2007-03-24 21:07:05下载
    积分:1
  • assignment1
    通过对输入ISBN进行演算.从而得出其真伪信息(Input to calculations by ISBN. To arrive at the authenticity of the information)
    2010-03-01 01:07:39下载
    积分:1
  • CQuakeDemo
    本程序源码是为日本一家地震监测机构编写的,用来演示地震对不同楼层的作用效果。可以手动调整震动幅度的比例。(the program source code is one of Japan's earthquake monitoring bodies to prepare, used to demonstrate the different floors of the earthquake in effect. Vibration can be manually adjusted rate ratio.)
    2007-04-08 21:09:09下载
    积分:1
  • pipe
    某石油公司计划建造一条由东向西的主输油管道。该管道要穿过一个有n 口油井的油田。从每口油井都要有一条输油管道沿最短路经(或南或北)与主管道相连。如果给定n 口油井的位置,即它们的x 坐标(东西向)和y 坐标(南北向),应如何确定主管道的最优位置, 即使各油井到主管道之间的输油管道长度总和最小的位置?证明可在线性时间内确定主管道的最优位置。(An oil company plans to construct a east to west from the main pipeline. The pipeline to pass through an oil field n wells. Wells from each must have a pipeline along the shortest path (or South or North) connected with the competent Road. If given the location of oil wells in n, that is, their x coordinates (east-west) and y coordinates (north-south), should be how to determine the optimal position in charge of Road, even if the wells to the pipeline in charge of Road between the sum of the smallest length location? proved to be linear time to determine the optimal position in charge of Road.)
    2008-07-07 10:25:25下载
    积分:1
  • Chaotic-time-series-analysis
    混沌时间序列Matlab源程序,包含时间序列的时间延迟计算,关联积分计算,相空间重构,时间序列分解,Heaviside函数的计算,延迟时间和时间窗口计算,混沌吸引子关联维计算,重构相空间进行K_L变换,混沌吸引子关联维计算,Hurst指数分析,关联维和Kolmogorov熵计算,FFT计算序列平均周期,最大lyapunov指数计算,利用互信息法求时间延迟,混沌和噪声识别的源程序。(Matlab chaotic time series source, time includes the time series of delay calculation, correlation integral calculation, phase space reconstruction, time series decomposition, calculated Heaviside function, the delay time and the time window calculated correlation dimension of chaotic attractors calculated reconstruction phase space K_L transform computing correlation dimension of chaotic attractors, Hurst exponent analysis, correlation dimension and Kolmogorov entropy calculation, FFT calculation sequence averaging period, maximum lyapunov index, mutual information method the time delay, chaos and noise source identification.)
    2016-11-15 09:40:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载