Coder Social home page Coder Social logo

nestarz / colors-clustering-visualization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zenozeng/colors-clustering-visualization

0.0 3.0 0.0 836 KB

Visualization demo for Colors Clustering using RGB & K-means algorithm

HTML 9.67% JavaScript 90.33%

colors-clustering-visualization's Introduction

colors-clustering-visualization

http://zenozeng.github.io/colors-clustering-visualization/

Visualization demo for Colors Clustering using RGB & K-means algorithm

This is a demo & intro for https://github.com/zenozeng/colors-clustering.

This demo was based on mbostock's Multi-Foci Force Layout.

http://bl.ocks.org/mbostock/1021953

Note for production usage:

  • You should CIE76 or CIE2000 for color difference

  • You should pick right ini colors (color keywords from CSS3 may be great)

K-Means 算法介绍

http://baike.baidu.com/view/31854.htm

k-means 算法接受输入量 k ;然后将n个数据对象划分为 k个聚类以便使得所获得的聚类满足:同一聚类中的对象相似度较高;而不同聚类中的对象相似度较小。聚类相似度是利用各聚类中对象的均值所获得一个“中心对象”(引力中心)来进行计算的。

k-means 算法基本步骤

  • 从 n个数据对象任意选择 k 个对象作为初始聚类中心;
  • 根据每个聚类对象的均值(中心对象),计算每个对象与这些中心对象的距离;并根据最小距离重新对相应对象进行划分;
  • 重新计算每个(有变化)聚类的均值(中心对象);
  • 计算标准测度函数,当满足一定条件,如函数收敛时,则算法终止;如果条件不满足则回到步骤(2)。

colors-clustering-visualization's People

Contributors

zenozeng avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.