maxleonov / cakephp-clope-clustering-plugin
Cake-PHP plugin for CLOPE clustering algorithm
Package info
github.com/maxleonov/cakephp-clope-clustering-plugin
Type:cakephp-plugin
pkg:composer/maxleonov/cakephp-clope-clustering-plugin
1.0.2
2014-03-07 18:06 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-14 23:20:56 UTC
README
Cake-PHP plugin for CLOPE clustering algorithm
Installation
cd my_cake_app/app
git clone git://github.com/maxleonov/cakephp-clope-clustering-plugin.git Plugin/ClopeClustering
add plugin loading in Config/bootstrap.php
CakePlugin::load('ClopeClustering');
add tables from docs/Database/database.sql
Usage
$Clope = ClassRegistry::init('ClopeClustering.Clope'); $params = array( 'repulsion' => 2.0, ); $transactions = array( array('a1', 'a2', 'a3'), array('a1', 'a2', 'a3', 'a4'), array('a1', 'a2', 'a3', 'a4'), array('a5', 'a6', 'a7'), array('a5', 'a6', 'a7'), array('a8', 'a9', 'a10') ); $Clope->clusterize($transactions, $params);