diff options
Diffstat (limited to 'include/libMSVMMaj.h')
| -rw-r--r-- | include/libMSVMMaj.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/libMSVMMaj.h b/include/libMSVMMaj.h new file mode 100644 index 0000000..b7261dc --- /dev/null +++ b/include/libMSVMMaj.h @@ -0,0 +1,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 |
