Commit Graph

52 Commits

Author SHA1 Message Date
Christian Muehlhaeuser
a2eeac4878 Simplify colorpalette's example code 2018-06-05 23:27:50 +02:00
Christian Muehlhaeuser
b7064e5971 Prefix plot filename with current k 2018-06-05 23:27:50 +02:00
Christian Muehlhaeuser
76471daa2d Code formatting fix 2018-06-05 23:27:50 +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
Phil Opaola
4ef3a65ce6 Add benchmarks for partitioning with different Cluster sizes (#3) 2018-05-30 07:16:41 +02:00
Christian Muehlhaeuser
eaeb5a110c
Remove flawed Point.Equal function 2018-05-29 04:19:04 +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
c49d1033bc
Added Cluster.removePoint(point) for convenience 2018-05-29 03:54:58 +02:00
Christian Muehlhaeuser
ff5e403929
Added Point.Equal(other) for convenience 2018-05-29 03:54:28 +02:00
Christian Muehlhaeuser
a032677f99
Abort processing when iterationThreshold has been reached 2018-05-29 03:54:00 +02:00
Christian Muehlhaeuser
f93f9c935e
Added clues when to use k-means to README 2018-05-28 03:11:35 +02:00
Christian Muehlhaeuser
a41f2c18df
Removed obsolete code 2018-05-28 01:06:42 +02:00
Christian Muehlhaeuser
0f747a74f8
Use the easier to distinguish colors first for plotting data 2018-05-28 01:06:20 +02:00
Christian Muehlhaeuser
ba34fac784
Use random data points in the simple example and README 2018-05-28 01:05:38 +02:00
Christian Muehlhaeuser
9ddd17af8f
Added comment for Plotter interface 2018-05-28 00:41:43 +02:00
Christian Muehlhaeuser
85fa95f2ce
Fixed tests for new API 2018-05-28 00:41:29 +02:00
Christian Muehlhaeuser
70160ed641
Keep receiver names consistent 2018-05-28 00:41:05 +02:00
Christian Muehlhaeuser
43d38b16f2 Don't confuse readers with different meanings of 'n' 2018-05-28 00:40:29 +02:00
Christian Muehlhaeuser
ad1605cf83 Added an iterationThreshold (currently internal only). 2018-05-28 00:40:29 +02:00
Christian Muehlhaeuser
3ac7672b93
Clamp CIELab colors before RGB conversion 2018-05-27 23:25:48 +02:00
Christian Muehlhaeuser
a2e4fa300c
The Plotter interface lets you attach custom plotters 2018-05-27 22:06:57 +02:00
Christian Muehlhaeuser
43c4b4685f
Don't abuse Point type for points-/centersInDimension 2018-05-27 18:38:13 +02:00
Christian Muehlhaeuser
fc27369cba
Keep receiver names consistent 2018-05-27 18:34:29 +02:00
Christian Muehlhaeuser
f6a37b65ea
Export Clusters.Nearest 2018-05-27 18:34:08 +02:00
Christian Muehlhaeuser
3cd22c49ed
Documented default delta thrshold in README 2018-05-27 15:57:24 +02:00
Christian Muehlhaeuser
1b576b719c
Updated documentation 2018-05-27 15:54:41 +02:00
Christian Muehlhaeuser
6c6534bdb2
Pass the iteration int to draw 2018-05-26 12:05:46 +02:00
Christian Muehlhaeuser
46f482c0a8
Exclude examples from coverage analysis 2018-05-26 11:51:59 +02:00
Christian Muehlhaeuser
5f42506e49
Added coverage badge 2018-05-26 11:33:14 +02:00
Christian Muehlhaeuser
af45c949f7
Use kmeans.Points in examples 2018-05-26 11:32:25 +02:00
Christian Muehlhaeuser
5e6ecbb5eb
Added tests 2018-05-26 11:31:07 +02:00
Christian Muehlhaeuser
28ca1d4a69
Added paragraph about algorithm's complexity to README 2018-05-26 09:02:30 +02:00
Christian Muehlhaeuser
ae7b956c11
Updated README title 2018-05-26 08:43:47 +02:00
Christian Muehlhaeuser
41c52813b2
Rename Run to Partition 2018-05-26 08:07:28 +02:00
Christian Muehlhaeuser
991ba4a3b2
Move wikipedia link to second paragraph 2018-05-26 07:55:33 +02:00
Christian Muehlhaeuser
1ffaf8ae21
Omit error handling in examples 2018-05-26 07:53:26 +02:00
Christian Muehlhaeuser
d9dd1cb6d5
Enable syntax highlighting in README 2018-05-26 07:51:58 +02:00
Christian Muehlhaeuser
cd51a89da5
Simplified and documented examples 2018-05-26 07:51:03 +02:00
Christian Muehlhaeuser
f3003012a2
Be more precise what a data point is 2018-05-26 07:39:00 +02:00
Christian Muehlhaeuser
c8582d6269
Fixed simple example 2018-05-26 07:36:22 +02:00
Christian Muehlhaeuser
2fa7595867
Added example to README 2018-05-26 07:34:34 +02:00
Christian Muehlhaeuser
fd7cf6a053
Added 'simple' example 2018-05-26 07:30:53 +02:00
Christian Muehlhaeuser
5ad2d1d689
Initialize Kmeans settings with either New or NewWithOptions 2018-05-26 07:26:26 +02:00
Christian Muehlhaeuser
09ea415c14
Go 1.3 is required 2018-05-26 06:42:40 +02:00
Christian Muehlhaeuser
3be43d2a59
Added .travis.yml 2018-05-26 06:39:45 +02:00
Christian Muehlhaeuser
4fad701c2a
Updated README and added animation 2018-05-26 06:38:24 +02:00