yat  0.14.5pre
Public Member Functions | List of all members
theplu::yat::classifier::SVindex Class Reference

#include <yat/classifier/SVindex.h>

Public Member Functions

 SVindex ()
 Default Contructor.
 
 SVindex (const size_t)
 Constructor.
 
size_t index_first (void) const
 
size_t index_second (void) const
 
void init (const utility::Vector &alpha, const double)
 synch the object against alpha
 
size_t nof_sv (void) const
 
void nsv_first (void)
 making first to an nsv. If already sv, nothing happens.
 
void nsv_second (void)
 making second to an nsv. If already sv, nothing happens.
 
void shuffle (void)
 
size_t size (void) const
 
void sv_first (void)
 making first to a sv. If already sv, nothing happens.
 
void sv_second (void)
 making second to a sv. If already sv, nothing happens.
 
void update_first (const size_t i)
 set index_first to i
 
void update_second (const size_t i)
 set index_second to i
 
size_t value_first (void) const
 
size_t value_second (void) const
 
size_t operator() (size_t i) const
 

Detailed Description

Internal Class keeping track of which samples are support vectors and not. The first nof_sv elements in the vector are indices of the support vectors

Member Function Documentation

size_t theplu::yat::classifier::SVindex::index_first ( void  ) const
Returns
index_first
size_t theplu::yat::classifier::SVindex::index_second ( void  ) const
Returns
index_second
size_t theplu::yat::classifier::SVindex::nof_sv ( void  ) const
Returns
nof support vectors
size_t theplu::yat::classifier::SVindex::operator() ( size_t  i) const
Returns
index i (if i<nof_sv() index is sv)
void theplu::yat::classifier::SVindex::shuffle ( void  )

randomizes the nsv part of vector and sets index_first to nof_sv_ (the first nsv)

size_t theplu::yat::classifier::SVindex::size ( void  ) const
Returns
nof samples
size_t theplu::yat::classifier::SVindex::value_first ( void  ) const
Returns
value_first
size_t theplu::yat::classifier::SVindex::value_second ( void  ) const
Returns
value_second

The documentation for this class was generated from the following file:

Generated on Tue Sep 26 2017 02:33:29 for yat by  doxygen 1.8.5