libocas.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "lib/common.h"
00017
00019 typedef struct {
00021 uint32_t nIter;
00023 uint32_t nCutPlanes;
00025 uint32_t nNZAlpha;
00027 float64_t trn_err;
00029 float64_t Q_P;
00031 float64_t Q_D;
00033 float64_t output_time;
00035 float64_t sort_time;
00037 float64_t add_time;
00039 float64_t w_time;
00041 float64_t solver_time;
00043 float64_t ocas_time;
00044
00049 int8_t exitflag;
00050 } ocas_return_value_T;
00051
00052 ocas_return_value_T svm_ocas_solver(
00053 float64_t C,
00054 uint32_t nData,
00055 float64_t TolRel,
00056 float64_t TolAbs,
00057 float64_t QPBound,
00058 uint32_t BufSize,
00059 uint8_t Method,
00060 void (*compute_W)(float64_t*, float64_t*, float64_t*, uint32_t, void*),
00061 float64_t (*update_W)(float64_t, void*),
00062 void (*add_new_cut)(float64_t*, uint32_t*, uint32_t, uint32_t, void*),
00063 void (*compute_output)( float64_t*, void* ),
00064 void (*sort)(float64_t*, uint32_t*, uint32_t),
00065 void* user_data);
00066
00067 void qsort_index(float64_t* value, uint32_t* index, uint32_t size);