aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_init.h
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2016-05-16 18:47:09 +0200
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2016-05-16 18:47:09 +0200
commit044dc5a93c33d7aa4c9c98a626890c16446a56fc (patch)
tree23cc17a595d36a35ad9cb50e3ab18c2956b5f65c /include/gensvm_init.h
parentMove includes to header (diff)
downloadgensvm-044dc5a93c33d7aa4c9c98a626890c16446a56fc.tar.gz
gensvm-044dc5a93c33d7aa4c9c98a626890c16446a56fc.zip
major refactor of the code
Diffstat (limited to 'include/gensvm_init.h')
-rw-r--r--include/gensvm_init.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/include/gensvm_init.h b/include/gensvm_init.h
index 980366b..3f4a1cb 100644
--- a/include/gensvm_init.h
+++ b/include/gensvm_init.h
@@ -1,28 +1,21 @@
/**
* @file gensvm_init.h
* @author Gertjan van den Burg
- * @date January, 2014
+ * @date May, 2016
* @brief Header file for gensvm_init.c
*
* @details
- * Contains function declarations for the initialization functions for
- * GenModel and GenData structures.
+ * Contains function declarations for the initialization functions for the
+ * model weights and model V matrix.
*/
#ifndef GENSVM_INIT_H
#define GENSVM_INIT_H
-// include
-#include "globals.h"
-#include "gensvm.h"
+#include "gensvm_base.h"
-struct GenModel *gensvm_init_model();
-
-struct GenData *gensvm_init_data();
-
-void gensvm_allocate_model(struct GenModel *model);
-void gensvm_reallocate_model(struct GenModel *model, long n, long m);
-void gensvm_free_model(struct GenModel *model);
-void gensvm_free_data(struct GenData *data);
+void gensvm_init_V(struct GenModel *from_model, struct GenModel *to_model,
+ struct GenData *data);
+void gensvm_initialize_weights(struct GenData *data, struct GenModel *model);
#endif