aboutsummaryrefslogtreecommitdiff
path: root/km-rand.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-02-05 00:22:15 -0500
committerPaul Duncan <pabs@pablotron.org>2019-02-05 00:22:15 -0500
commitf557d1f49a2914c6084dd18efc783395228d8ce0 (patch)
tree51111fc899f01956cbab948b87c241478576870d /km-rand.c
parentb5065ea43cb13c0b553874305b53963176c70f59 (diff)
downloadkmeans-f557d1f49a2914c6084dd18efc783395228d8ce0.tar.bz2
kmeans-f557d1f49a2914c6084dd18efc783395228d8ce0.zip
mv *.[hc] src/
Diffstat (limited to 'km-rand.c')
-rw-r--r--km-rand.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/km-rand.c b/km-rand.c
deleted file mode 100644
index e777069..0000000
--- a/km-rand.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <stdbool.h>
-#include "util.h"
-#include "km.h"
-
-// fill buffer with N random floats
-bool
-km_rand_get_floats(
- km_rand_t * const rs,
- const size_t num_floats,
- float * const floats
-) {
- return rs->cbs->get_floats(rs, num_floats, floats);
-}
-
-// fill buffer with N random size_ts
-bool
-km_rand_get_sizes(
- km_rand_t * const rs,
- const size_t num_sizes,
- size_t * const sizes
-) {
- return rs->cbs->get_sizes(rs, num_sizes, sizes);
-}
-
-// finalize random source
-void
-km_rand_fini(
- km_rand_t * const rs
-) {
- if (rs->cbs->fini) {
- rs->cbs->fini(rs);
- }
-}