GestureRecognitionToolkit  Version: 0.2.5
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
libsvm.h File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <float.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include <locale.h>
#include <iostream>
#include <algorithm>

Go to the source code of this file.

Classes

struct  LIBSVM::svm_node
 
struct  LIBSVM::svm_problem
 
struct  LIBSVM::svm_parameter
 
struct  LIBSVM::svm_model
 

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define _CRT_NONSTDC_NO_DEPRECATE
 
#define LIBSVM_VERSION   312
 

Enumerations

enum  {
  C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR,
  NU_SVR
}
 
enum  {
  LINEAR, POLY, RBF, SIGMOID,
  PRECOMPUTED
}
 

Functions

struct svm_model * LIBSVM::svm_train (const struct svm_problem *prob, const struct svm_parameter *param)
 
void LIBSVM::svm_cross_validation (const struct svm_problem *prob, const struct svm_parameter *param, int nr_fold, double *target)
 
int LIBSVM::svm_save_model (const char *model_file_name, const struct svm_model *model)
 
svm_model * LIBSVM::svm_load_model (const char *model_file_name)
 
int LIBSVM::svm_get_svm_type (const struct svm_model *model)
 
int LIBSVM::svm_get_nr_class (const struct svm_model *model)
 
void LIBSVM::svm_get_labels (const struct svm_model *model, int *label)
 
double LIBSVM::svm_get_svr_probability (const struct svm_model *model)
 
double LIBSVM::svm_predict_values (const struct svm_model *model, const struct svm_node *x, double *dec_values)
 
double LIBSVM::svm_predict (const struct svm_model *model, const struct svm_node *x)
 
double LIBSVM::svm_predict_probability (const struct svm_model *model, const struct svm_node *x, double *prob_estimates)
 
void LIBSVM::svm_free_model_content (svm_model *model_ptr)
 
void LIBSVM::svm_free_and_destroy_model (svm_model **model_ptr_ptr)
 
void LIBSVM::svm_destroy_param (svm_parameter *param)
 
const char * LIBSVM::svm_check_parameter (const struct svm_problem *prob, const struct svm_parameter *param)
 
int LIBSVM::svm_check_probability_model (const struct svm_model *model)
 
void LIBSVM::svm_set_print_string_function (void(*print_func)(const char *))
 

Detailed Description

Author
Chih-Chung Chang and Chih-Jen Lin
Version
3.12

LICENSE

NOTE: LIBSVM has its own copyright and license info, here it is:

Copyright (c) 2000-2013 Chih-Chung Chang and Chih-Jen Lin All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither name of copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

DESCRIPTION

LIBSVM is an integrated software for support vector classification, (C-SVC, nu-SVC), regression (epsilon-SVR, nu-SVR) and distribution estimation (one-class SVM). It supports multi-class classification.

You can find detailed information about LIBSVM on the main website: http://www.csie.ntu.edu.tw/~cjlin/libsvm/

Definition in file libsvm.h.