GenSVM
Functions
gensvm_sv.h File Reference

Header file for gensvm_sv.c. More...

#include "gensvm_base.h"
Include dependency graph for gensvm_sv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

long gensvm_num_sv (struct GenModel *model)
 Calculate the number of support vectors in a model. More...
 

Detailed Description

Header file for gensvm_sv.c.

Author
G.J.J. van den Burg
Date
2014-05-01

Contains function declarations for functions used to count support vectors.

This file is part of GenSVM.

GenSVM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

GenSVM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GenSVM. If not, see http://www.gnu.org/licenses/.

Definition in file gensvm_sv.h.

Function Documentation

◆ gensvm_num_sv()

long gensvm_num_sv ( struct GenModel model)

Calculate the number of support vectors in a model.

If an object is correctly classified, the number of classes for which the error q is larger than 1, is K-1 (i.e., there is no error w.r.t. any of the other classes). All objects for which this is not the case are thus support vectors.

Parameters
[in]modelGenModel with solution and up-to-date Q matrix
Returns
number of support vectors with this solution

Definition at line 46 of file gensvm_sv.c.