mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
.. with grateful thanks to Greg Hamerly A fast kmeans algorithm described here: https://epubs.siam.org/doi/10.1137/1.9781611972801.12 The source repository is also here: https://github.com/ghamerly/fast-kmeans NOTE: The original source has been included largely as-is with a view to writing a wrapper around it using Qt semantics for use in GoldenCheetah (e.g. via datafilter) The original source included multiple kmeans algorithms we have only kept the `fast' Hamerly variant.
16 lines
449 B
Plaintext
16 lines
449 B
Plaintext
# doesn't work now since the source has been placed in a subdir
|
|
# left for info and fairly trivial to fixup if you want to work
|
|
# directly with the original sources
|
|
|
|
OBJECTS=kmeans_dataset.o \
|
|
general_functions.o \
|
|
hamerly_kmeans.o \
|
|
kmeans.o \
|
|
original_space_kmeans.o \
|
|
triangle_inequality_base_kmeans.o \
|
|
driver-standalone.o
|
|
|
|
driver-standalone: $(OBJECTS)
|
|
gcc -o $@ $(OBJECTS) -lstdc++ -lm
|
|
./driver-standalone hamerly smallDataset.txt 4 centers
|