Skip to content

Template class#5

Open
sbrodehl wants to merge 3 commits intomichaelchughes:masterfrom
sbrodehl:template
Open

Template class#5
sbrodehl wants to merge 3 commits intomichaelchughes:masterfrom
sbrodehl:template

Conversation

@sbrodehl
Copy link
Copy Markdown

@sbrodehl sbrodehl commented Oct 4, 2016

Here is a template class for KMeansRex to be able to change the used type / precision.

No functions were changed, only copied, except the externally callable ones, which use the new class now.
The class is wrapped in the namespace KMeansRex, so that a call looks like this

KMeansRex::KMeansRex<double>(X_IN, N, D, K, Niter, seed, initname, Mu_OUT, Z_OUT);

Matlab wrapper is changed as well, but not tested (I don't use matlab).
Python wrapper is not touched, but not tested either.

  • One probably should implement the template class header only, but it makes no big difference, I guess.
  • In addition one could replace the mersenne twister with the one from std lib?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant