Macros | Functions | Variables
svm_model_matlab.c File Reference
#include <stdlib.h>
#include <string.h>
#include "../svm.h"
#include "mex.h"
Include dependency graph for svm_model_matlab.c:

Go to the source code of this file.

Macros

#define Malloc(type, n)   (type *)malloc((n)*sizeof(type))
 
#define NUM_OF_RETURN_FIELD   11
 

Functions

struct svm_modelmatlab_matrix_to_model (const mxArray *matlab_struct, const char **msg)
 
const char * model_to_matlab_structure (mxArray *plhs[], int num_of_feature, struct svm_model *model)
 

Variables

static const char * field_names []
 

Macro Definition Documentation

#define Malloc (   type,
 
)    (type *)malloc((n)*sizeof(type))

Definition at line 15 of file svm_model_matlab.c.

#define NUM_OF_RETURN_FIELD   11

Definition at line 13 of file svm_model_matlab.c.

Function Documentation

struct svm_model* matlab_matrix_to_model ( const mxArray *  matlab_struct,
const char **  msg 
)

Definition at line 213 of file svm_model_matlab.c.

const char* model_to_matlab_structure ( mxArray *  plhs[],
int  num_of_feature,
struct svm_model model 
)

Definition at line 32 of file svm_model_matlab.c.

Variable Documentation

const char* field_names[]
static
Initial value:
=
{
"Parameters",
"nr_class",
"totalSV",
"rho",
"Label",
"sv_indices",
"ProbA",
"ProbB",
"nSV",
"sv_coef",
"SVs"
}

Definition at line 17 of file svm_model_matlab.c.



ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Sun Dec 15 2019 03:53:50