-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Right now the code for random initialization in https://github.com/ghamerly/fast-kmeans/blob/84a0e151e1006e510a6ec95d6606404ee54127e9/src/general_functions.cpp uses rand(), which is initialized by srand() here: https://github.com/ghamerly/fast-kmeans/blob/84a0e151e1006e510a6ec95d6606404ee54127e9/src/driver-experiment.cpp
We should move away from rand() and srand() towards C++ <random> classes (http://www.cplusplus.com/reference/random/). Further, in https://github.com/ghamerly/fast-kmeans/blob/84a0e151e1006e510a6ec95d6606404ee54127e9/src/driver-standalone.cpp there should be an option to seed the generator via command line parameter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request