aboutsummaryrefslogtreecommitdiff
path: root/include/libGenSVM.h
blob: 9e2d4c252c177f155d86138beebfa7a45a1fd871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * @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

// 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