Clustered cloud of points
The only dependency is gnuplot, so no need to use cabal to install.
$ make
Pass the input through stdin. The input coordinates should be formatted as line separated "x y _" points.
Using runhaskell:
$ cat input.txt | runhaskell clust.hs 47 Complete
Compiled version:
$ cat input.txt | ./clust 47 Complete
Кластеризовать облако точек.
Из зависимостей только gnuplot, поэтому без кабалов обошлось.
$ make # лол
В stdin подаются координаты в формате "x y _" по одной на строке.
Через runhaskell:
$ cat input.txt | runhaskell clust.hs 47 Complete
Скомпилированную версию:
$ cat input.txt | ./clust 47 Complete