Skip to content

Improving random initialization #9

@ghamerly

Description

@ghamerly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions