登录
首页 » matlab » K-meanCluster

K-meanCluster

于 2007-11-15 发布 文件大小:2KB
0 195
下载积分: 1 下载次数: 91

代码说明:

  How the K-mean Cluster work Step 1. Begin with a decision the value of k = number of clusters Step 2. Put any initial partition that classifies the data into k clusters. You may assign the training samples randomly, or systematically as the following: Take the first k training sample as single-element clusters Assign each of the remaining (N-k) training sample to the cluster with the nearest centroid. After each assignment, recomputed the centroid of the gaining cluster. Step 3 . Take each sample in sequence and compute its distance from the centroid of each of the clusters. If a sample is not currently in the cluster with the closest centroid, switch this sample to that cluster and update the centroid of the cluster gaining the new sample and the cluster losing the sample. Step 4 . Repeat step 3 until convergence is achieved, that is until a pass through the training sample causes no new assignments. (How the K-mean Cluster workStep 1. Begin with a decision the value of k = number of clusters Step 2. Put any initial partition that classifies the data into k clusters. You may assign the training samples randomly, or systematically as the following: Take the first k training sample as single-element clusters Assign each of the remaining (Nk) training sample to the cluster with the nearest centroid. After each assignment, recomputed the centroid of the gaining cluster. Step 3. Take each sample in sequence and compute its distance from the centroid of each of the clusters. If a sample is not currently in the cluster with the closest centroid, switch this sample to that cluster and update the centroid of the cluster gaining the new sample and the cluster losing the sample. Step 4. Repeat step 3 until convergence is achieved, that is until a pass through the training sample causes no new assignments.)

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

发表评论

0 个回复

  • GratingLight
    模拟正弦衍射光栅光强分布,图1中X轴是位置,Y轴是光强,图2,是强度分布(Analog sinusoidal diffraction grating intensity distribution)
    2012-04-15 18:53:05下载
    积分:1
  • optical-estimation
    Horn algorithm what i am working on
    2011-04-26 05:31:15下载
    积分:1
  • engine
    TRES IMPORTANT SUR LES MOTEURS PAS 0 PAS
    2011-11-15 23:47:33下载
    积分:1
  • MATLAB
    系统的介绍了MATLAB软件,并用该语言解决了大量的编程问题。(Systematic introduction of the MATLAB software, and use the language to solve a lot of programming problems)
    2009-10-27 19:51:15下载
    积分:1
  • emd
    HHT gcc代码,专门用于希尔伯特黄变换。(HHT gcc code, specifically for the Hilbert-Huang Transform.)
    2010-05-06 15:29:00下载
    积分:1
  • knapsackAlgorithm
    遗传算法实现背包问题的matlab代码,分享给大家(Knapsack problem genetic algorithm matlab code to share for everyone)
    2010-06-19 12:38:43下载
    积分:1
  • MYFILTER
    matlab S函数学习,举例仿真,可供初学参考着学习。(matlab S function to learn, for example simulation, for beginners reference of learning.)
    2013-09-07 10:30:56下载
    积分:1
  • cosamp
    Compressive Sampling Matching Pursuit
    2011-09-02 12:09:54下载
    积分:1
  • Simulation-of-multi-machine-
    多机通信可靠性在matlab上的模拟实现(Simulation of multi machine communication reliability in matlab implementation)
    2013-12-19 19:35:26下载
    积分:1
  • OFDMMATLAB
    OFDM和MATLAB仿真含程序,包含解释和一些源码(OFDM and simulation with MATLAB program, including interpretation and some source code)
    2014-07-19 22:41:07下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载