aboutsummaryrefslogtreecommitdiff
path: root/include/libGenSVM.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libGenSVM.h')
-rw-r--r--include/libGenSVM.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/libGenSVM.h b/include/libGenSVM.h
new file mode 100644
index 0000000..cfa2815
--- /dev/null
+++ b/include/libGenSVM.h
@@ -0,0 +1,42 @@
+/**
+ * @file libGenSVM.h
+ * @author Gertjan van den Burg
+ * @date August, 2013
+ * @brief Header file for the core GenSVM library libGenSVM.c
+ *
+ * @details
+ * The core computational routines for GenSVM are defined in libGenSVM.c.
+ * This file contains function declarations for these functions.
+ *
+ */
+
+/**
+ * @todo
+ * rename this file and libGenSVM.c to correspond with the lowercase convention.
+ * Also change the name of the include guard.
+ */
+#ifndef LIBGENSVM_H
+#define LIBGENSVM_H
+
+#include "globals.h"
+
+// forward declarations
+struct GenData;
+struct GenModel;
+
+// function declarations
+void gensvm_simplex_gen(long K, double *U);
+void gensvm_category_matrix(struct GenModel *model, struct GenData *data);
+void gensvm_simplex_diff(struct GenModel *model, struct GenData *dataset);
+
+void gensvm_calculate_errors(struct GenModel *model, struct GenData *data,
+ double *ZV);
+void gensvm_calculate_huber(struct GenModel *model);
+
+void gensvm_step_doubling(struct GenModel *model);
+
+void gensvm_seed_model_V(struct GenModel *from_model,
+ struct GenModel *to_model, struct GenData *data);
+void gensvm_initialize_weights(struct GenData *data, struct GenModel *model);
+
+#endif