Christian Muehlhaeuser
2e48c94b98
fix: linter errors
2022-07-22 14:35:48 +02:00
Christian Muehlhaeuser
251e9d44b4
Move plotter into a separate package
2021-09-13 14:27:53 +02:00
Diego Medina
66f1657148
Handle errors calling Plot() ( #14 )
...
The error returned by calling Plot() was being ignored.
2020-07-18 07:16:29 +02:00
Christian Muehlhaeuser
8801d19944
Ensure another iteration after randomly assigning a point to a cluster
2018-06-05 23:27:50 +02:00
Christian Muehlhaeuser
c58ae78401
Moved clustering and observation structs to github.com/muesli/clusters
2018-06-05 23:27:50 +02:00
Christian Muehlhaeuser
0ad7a62e65
Fixed comment for plotter
2018-05-30 13:45:53 +02:00
Christian Muehlhaeuser
731515890f
Removing points from another cluster will fail due to float comparison
...
We don't actually need to remove the data point from another cluster, though,
since this only makes a difference in the very last iteration of the algorithm.
If there are still empty clusters in the last iteration, the data set will most
probably never converge.
2018-05-29 04:15:43 +02:00
Christian Muehlhaeuser
86f284616f
Don't empty one cluster just to fill another
2018-05-29 03:57:24 +02:00
Christian Muehlhaeuser
fd3d39c8f6
Return an error if the size of the data set is smaller than k
2018-05-29 03:56:06 +02:00
Christian Muehlhaeuser
a032677f99
Abort processing when iterationThreshold has been reached
2018-05-29 03:54:00 +02:00
Christian Muehlhaeuser
ad1605cf83
Added an iterationThreshold (currently internal only).
2018-05-28 00:40:29 +02:00
Christian Muehlhaeuser
a2e4fa300c
The Plotter interface lets you attach custom plotters
2018-05-27 22:06:57 +02:00
Christian Muehlhaeuser
f6a37b65ea
Export Clusters.Nearest
2018-05-27 18:34:08 +02:00
Christian Muehlhaeuser
6c6534bdb2
Pass the iteration int to draw
2018-05-26 12:05:46 +02:00
Christian Muehlhaeuser
41c52813b2
Rename Run to Partition
2018-05-26 08:07:28 +02:00
Christian Muehlhaeuser
5ad2d1d689
Initialize Kmeans settings with either New or NewWithOptions
2018-05-26 07:26:26 +02:00
Christian Muehlhaeuser
39f489bf47
Initial import
2018-05-26 06:17:36 +02:00