#include <yat/classifier/DataLookupWeighted1D.h>
Public Types | |
typedef utility::DataWeight | value_type |
typedef const utility::DataWeight | const_reference |
typedef MatrixLookupWeighted::const_row_iterator | const_iterator |
'Read Only' iterator | |
Public Member Functions | |
DataLookupWeighted1D (const MatrixLookupWeighted &m, const size_t index, const bool row_vector) | |
DataLookupWeighted1D (const DataLookupWeighted1D &) | |
DataLookupWeighted1D (const size_t size, double value=0, double weight=1) | |
virtual | ~DataLookupWeighted1D () |
Destructor. | |
const_iterator | begin () const |
double | data (const size_t i) const |
const_iterator | end () const |
size_t | size (void) const |
double | weight (const size_t i) const |
const_reference | operator() (const size_t i) const |
access operator | |
Related Functions | |
(Note that these are not member functions.) | |
double | sum_weight (const DataLookupWeighted1D &) |
void | convert (const DataLookupWeighted1D &, utility::Vector &value, utility::Vector &weight) |
theplu::yat::classifier::DataLookupWeighted1D::DataLookupWeighted1D | ( | const MatrixLookupWeighted & | m, | |
const size_t | index, | |||
const bool | row_vector | |||
) |
Constructor.
m | MatrixLookupWeighted to look into | |
row_vector | if true (default) DataLookup1D is looking into a row of MatrixLookupWeighted, otherwise looking into a column. | |
index | which row/column to look into. |
theplu::yat::classifier::DataLookupWeighted1D::DataLookupWeighted1D | ( | const DataLookupWeighted1D & | ) |
Copy constructor
theplu::yat::classifier::DataLookupWeighted1D::DataLookupWeighted1D | ( | const size_t | size, | |
double | value = 0 , |
|||
double | weight = 1 | |||
) |
Construct DataLookup1D that owns its underlying matrix. Object has size size and all its element is equal to value.
const_iterator theplu::yat::classifier::DataLookupWeighted1D::begin | ( | ) | const |
double theplu::yat::classifier::DataLookupWeighted1D::data | ( | const size_t | i | ) | const |
const_iterator theplu::yat::classifier::DataLookupWeighted1D::end | ( | ) | const |
size_t theplu::yat::classifier::DataLookupWeighted1D::size | ( | void | ) | const |
double theplu::yat::classifier::DataLookupWeighted1D::weight | ( | const size_t | i | ) | const |
void convert | ( | const DataLookupWeighted1D & | , | |
utility::Vector & | value, | |||
utility::Vector & | weight | |||
) | [related] |
Converts a DataLookupWeighted1D to two utility::vector
double sum_weight | ( | const DataLookupWeighted1D & | ) | [related] |