ECOCPAK v0.9
|
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cmath>
#include <armadillo>
#include <ncurses.h>
#include "ecocpak.hpp"
Defines | |
#define | ARMA_NO_DEBUG |
#define | ECOCPAK_PROGRAM |
Enumerations | |
enum | { DECODING_MENU, CODING_MENU, CRITERION_MENU } |
Functions | |
void | exit_with_help (const char *str=0) |
bool | is_number (char *str) |
void | drawmenu_coding_method (int item) |
void | drawmenu_decoding_method (int item) |
void | drawmenu_criterion (int item) |
void | disclaimer () |
void | parse_command_line (int argc, char **argv, char *input_file_name, char *testing_file_name, u32 &n_folds, bool &cross_validation_flag, int &classifiers_option, int &coding_strategy, int &decoding_strategy, int &size_threshold, double &improvement_threshold, double &performance_threshold, int &n_matrices, int &n_classifiers, int &criterion, double &validation, int &init_coding_strategy, u32 &maxiter, double &epsilon, int &ecoconemode, double &wvalidation, bool &verbose, imat &codmat) |
void | print_decoding_strategy (const int decoding_strategy, const bool verbose, ofstream &out) |
void | print_coding_strategy (const int coding_strategy, const bool verbose, ofstream &out) |
int | drawmenu (const u32 n_elem, const int option, const int init_value=0) |
Draws the NCurses menus for the decoding, coding and criterion selection. | |
int | main (int argc, char **argv) |
Variables | |
static char const | spin_chars [] = "|/-\\" |
bool | menu_on = false |