1 #ifndef _theplu_yat_classifier_matrix_lookup_weighted_
2 #define _theplu_yat_classifier_matrix_lookup_weighted_
27 #include "yat/utility/Container2DIterator.h"
28 #include "yat/utility/DataWeight.h"
30 #include "yat/utility/Index.h"
31 #include "yat/utility/MatrixWeighted.h"
32 #include "yat/utility/StrideIterator.h"
34 #include <boost/iterator/permutation_iterator.hpp>
35 #include <boost/shared_ptr.hpp>
43 namespace classifier {
89 typedef boost::permutation_iterator<
96 typedef boost::permutation_iterator<
191 const bool row_vectors) YAT_DEPRECATE;
199 const double value=0,
const double weight=1);
248 double data(
size_t row,
size_t column)
const;
268 size_t rows(
void)
const;
273 double weight(
size_t row,
size_t column)
const;
298 typedef boost::shared_ptr<const utility::MatrixWeighted> MatrixWP;
304 bool validate(
void)
const;
General view into utility::Matrix.
Definition: MatrixLookup.h:70
boost::permutation_iterator< utility::MatrixWeighted::const_row_iterator, utility::Index::const_iterator > const_row_iterator
Definition: MatrixLookupWeighted.h:98
utility::StrideIterator< utility::Container2DIterator< const MatrixLookupWeighted, const value_type, const_reference > > const_iterator
'Read Only' iterator
Definition: MatrixLookupWeighted.h:84
const utility::DataWeight & const_reference
Definition: MatrixLookupWeighted.h:78
bool weighted(void) const
const_reference operator()(const size_t row, const size_t column) const
const_row_iterator end_row(size_t) const
const MatrixLookupWeighted & operator=(const MatrixLookupWeighted &)
assigment operator
StrideIterator< std::vector< DataWeight >::const_iterator > const_column_iterator
Definition: MatrixWeighted.h:81
Holds a pair of data and associated weight.
Definition: DataWeight.h:39
double weight(size_t row, size_t column) const
Class for storing indices of, e.g., a MatrixLookup.
Definition: Index.h:41
Iterator for a Container2D.
Definition: Container2DIterator.h:61
size_t columns(void) const
General view into utility::MatrixWeighted.
Definition: MatrixLookupWeighted.h:63
const_iterator end(void) const
MatrixLookupWeighted(const utility::MatrixWeighted &matrix, const utility::Index &rows, const utility::Index &columns)
Create a lookup into matrix.
const_column_iterator end_column(size_t) const
const_column_iterator begin_column(size_t) const
boost::permutation_iterator< utility::MatrixWeighted::const_column_iterator, utility::Index::const_iterator > const_column_iterator
Definition: MatrixLookupWeighted.h:91
utility::DataWeight value_type
Definition: MatrixLookupWeighted.h:71
virtual ~MatrixLookupWeighted()
Weighted Matrix.
Definition: MatrixWeighted.h:44
const_row_iterator begin_row(size_t) const
const_iterator begin(void) const
double data(size_t row, size_t column) const
Adaptor using a stride on underlying iterator.
Definition: StrideIterator.h:50
const_column_iterator const_row_iterator
Definition: MatrixWeighted.h:91
std::vector< size_t >::const_iterator const_iterator
Definition: Index.h:49