yat
0.14.5pre
|
#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 |
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
size_t theplu::yat::classifier::SVindex::index_first | ( | void | ) | const |
size_t theplu::yat::classifier::SVindex::index_second | ( | void | ) | const |
size_t theplu::yat::classifier::SVindex::nof_sv | ( | void | ) | const |
size_t theplu::yat::classifier::SVindex::operator() | ( | size_t | i | ) | const |
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 |
size_t theplu::yat::classifier::SVindex::value_first | ( | void | ) | const |
size_t theplu::yat::classifier::SVindex::value_second | ( | void | ) | const |