/** * @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, struct MajData *data); void msvmmaj_initialize_weights(struct MajData *data, struct MajModel *model); #endif