#ifndef SVM_RBF_H #define SVM_RBF_H #define FEATURE_VECTOR_LENGTH (1104) #define NUM_SUPPORT_VECTORS (52) /* * filename = path to text file containing support vector coefficients (e.g., "ay.txt"). * Returns ay [NUM_SUPPORT_VECTORS], which must be freed by the caller. */ double *load_ay (char *filename); /* * filename = path to text file containing support vectors (e.g., "VS.txt"). * Returns VS [NUM_SUPPORT_VECTORSxFEATURE_VECTOR_LENGTH], which must be freed by the caller. */ double *load_VS (char *filename); /* h=histogram representation [1xFEATURE_VECTOR_LENGTH] VS = support vector in histogram representation [NUM_SUPPORT_VECTORSxFEATURE_VECTOR_LENGTH]. ay = coefficients of support [NUM_SUPPORT_VECTORSx1] g = gaussian width [1x1] Returns y [1x1] */ double svm_rbf (double *h, double *VS, double *ay, double g); #endif