29 Commits

Author SHA1 Message Date
battlecook
38cbae7c38
Improve micro performance (#21)
* remove unused variable

* added kmeans++ initialize method

referred to https://www.kdnuggets.com/2020/06/centroid-initialization-k-means-clustering.html

* removed unused code

* Remove unnecessary if state logic int the for loop
2021-08-31 13:53:48 +02:00
battlecook
eded4796cd removed unused code 2021-08-18 09:21:38 +02:00
battlecook
93dafc1f16 added kmeans++ initialize method
referred to https://www.kdnuggets.com/2020/06/centroid-initialization-k-means-clustering.html
2021-08-18 09:21:38 +02:00
battlecook
0412efe687 remove unused variable 2021-08-05 19:50:49 +02:00
battlecook
40dde565db added testcase to ClusterTest.php, PointTest.php 2021-08-05 14:31:31 +02:00
Benjamin Delespierre
86957271f9 psr12 compliance v2.1.1 2021-04-02 00:21:27 +02:00
Benjamin Delespierre
5cb2784379 enabling php8 2021-04-02 00:20:30 +02:00
Benjamin Delespierre
5e34596b98 updating readme (and demo) #11 2021-04-02 00:20:10 +02:00
Benjamin Delespierre
1aac5f52af switching to MIT license v2.1.0 2020-08-23 22:16:56 +02:00
Benjamin Delespierre
87aeb9f007 updating changelog 2020-08-23 22:14:00 +02:00
Benjamin Delespierre
fd76f1fdf4 minor fix v2.0.0 2020-08-23 21:54:22 +02:00
Benjamin Delespierre
5108b2ca4f fixing arrow function (not available in 7.3) 2020-08-23 21:38:19 +02:00
Benjamin Delespierre
cdd6636b7b fixing the styleci configuration 2020-08-23 21:29:53 +02:00
Benjamin Delespierre
d2006efb32 updating badges 2020-08-23 21:22:33 +02:00
Benjamin Delespierre
d1dad80344 adding changelog 2020-08-23 21:20:35 +02:00
Benjamin Delespierre
56eb0b4c45 adding monitoring configurations 2020-08-23 21:20:24 +02:00
Benjamin Delespierre
21b1b706e6 updating readme 2020-08-23 21:19:58 +02:00
Benjamin Delespierre
deaaa9daa8 updating composer.json for tests 2020-08-23 21:01:46 +02:00
Benjamin Delespierre
6573113502 adding git attributes 2020-08-23 21:01:15 +02:00
Benjamin Delespierre
378e1ce8bb adding markdowns 2020-08-23 21:01:01 +02:00
Benjamin Delespierre
2c97146765 writing tests 2020-08-23 21:00:44 +02:00
Benjamin Delespierre
dece0d53b5 adding typehints 2020-08-23 18:07:14 +02:00
Benjamin Delespierre
c7f2ace6d0 writing tests 2020-08-23 17:51:38 +02:00
Benjamin Delespierre
f66df584b9 fixing psr2 issues using phpcbf 2020-08-23 15:08:49 +02:00
Benjamin Delespierre
32fd509033 fixing keywork 'kmeans++' unrecognized by packagist v1.0.0 2018-02-18 14:59:51 +01:00
Benjamin Delespierre
18dd78bafe adding precision parameter on Point::getDistanceWith 2015-10-15 16:17:06 +02:00
Delespierre
81b8ed27b9 Merge pull request #5 from roncemer/master
PHP 5.3 compatibility.
2015-10-15 15:56:07 +02:00
Ron Cemer
3dc32e4ef4 PHP 5.3 compatibility. 2015-10-14 10:49:28 -05:00
Benjamin Delespierre
6a2a38f64f initial import 2014-10-08 17:03:58 +02:00