Skip to content

cppxaxa/kmeans_cluster_php_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

K-MEANS Clusters PHP Library

It is a simple PHP library to integrate and get clusters with implementation of kmeans

Live Demo

http://spider.nitt.edu/~cppxaxa/kmeans/

Usage

You need to provide k value to get clusters.

$obj = new Wrapper();
$obj->k = 2;
$obj->limit = 10;
$obj->set = array();
$obj->set[] = new DataSet(10, 20);
$obj->set[] = new DataSet(10, 21);
$obj->set[] = new DataSet(30, 20);
$obj->set[] = new DataSet(35, 30);

echo kmeans( json_encode($obj) );

Reference

http://dni-institute.in/blogs/k-means-clustering-algorithm-explained/

About

It is a simple PHP library to integrate and get clusters with implementation of kmeans

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages