aboutsummaryrefslogtreecommitdiff
path: root/include/libMSVMMaj.h
blob: b7261dc81ed828036ee05ce55ea92e0a4dd2f15c (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 libMSVMMaj.h
 * @author Gertjan van den Burg
 * @date August, 2013
 * @brief Header file for the core MSVMMaj library libMSVMMaj.c
 *
 * @details
 * The core computational routines for MSVMMaj are defined in libMSVMMaj.c.
 * This file contains function declarations for these functions.
 *
 */

/**
 * @todo 
 * rename this file and libMSVMMaj.c to correspond with the lowercase convention.
 * Also change the name of the include guard.
 */ 
#ifndef LIBMSVMMAJ_H
#define LIBMSVMMAJ_H

#include "globals.h"

// forward declarations 
struct MajData;
struct MajModel;

// function declarations
void msvmmaj_simplex_gen(long K, double *U);
void msvmmaj_category_matrix(struct MajModel *model, struct MajData *data);
void msvmmaj_simplex_diff(struct MajModel *model, struct MajData *dataset);

void msvmmaj_calculate_errors(struct MajModel *model, struct MajData *data, double *ZV);
void msvmmaj_calculate_huber(struct MajModel *model);

void msvmmaj_step_doubling(struct MajModel *model);

void msvmmaj_seed_model_V(struct MajModel *from_model, struct MajModel *to_model);
void msvmmaj_initialize_weights(struct MajData *data, struct MajModel *model);

#endif