Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
K-means function as a user-defined window function in PostgreSQL
C Perl
branch: master

Change convergence condition to DBL_EPSILON.

Previsou coding is bad since comparison between two 0.0 floating points
are not necessarily possible.
latest commit d6a57eda9e
Hitoshi Harada authored


This module implements k-means clustering algorithm in PostgreSQL. It is a truly user-defined window function out of builtin functions, written in C.

Designed for PostgreSQL 8.4+

Hitoshi Harada

Something went wrong with that request. Please try again.