Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 435 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 435 Bytes

K-means clustering extension for PHP

Installation

# install PHP-CPP
RUN git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git && \
    cd PHP-CPP && make && make install

# build extension 

RUN git clone https://github.com/karlerss/php-cpp-kmeans.git && \
    cd php-cpp-kmeans && make && make install

Usage

$clusters = cpp_kmeans(15, [
    123 => [345,456],
    223 => [867,867],
    ...
])