|
auto | begin () const |
|
auto | end () const |
|
auto | begin () |
|
auto | end () |
|
| Point () |
| Empty constructor. More...
|
|
| Point (Point< T > const &p) |
|
template<typename R1 > |
| Point (Point< T, R1 > const &p) |
|
template<typename T2 , typename R1 > |
| Point (Point< T2, R1 > const &p) |
|
| Point (std::size_t s) |
| Construct a point with initial dimension. More...
|
|
| Point (std::size_t s, const T &value, const std::size_t &id=0) |
| Construct a point with initial dimension, default value and id. More...
|
|
| Point (Rep const &rb) |
| Construct a point with a custom internal representation. More...
|
|
| Point (std::initializer_list< T > init) |
|
std::size_t | size () const |
| Returns the dimension of the point. More...
|
|
Rep const & | X () const |
| Returns the attributes representation of the point (std::vector by default). More...
|
|
Rep & | X () |
| Returns a reference to the attributes representation of the point (std::vector by default). More...
|
|
double const & | Y () const |
| Returns the class or value of the point. More...
|
|
double & | Y () |
| Returns a reference to the class or value of the point. More...
|
|
double const & | Alpha () const |
| Return the alpha value of the point. More...
|
|
double & | Alpha () |
| Returns a reference to the alpha value of the point. More...
|
|
size_t const & | Id () const |
| Returns the id of the point. More...
|
|
size_t & | Id () |
| Returns a reference to the id of the point. More...
|
|
void | setY (double const &_y) |
| Set the class or value of the point. More...
|
|
void | setAlpha (double const &_alpha) |
| Set alpha value of the point. More...
|
|
void | setID (size_t const &_id) |
| Set the id of the point. More...
|
|
Point< T > | selectFeatures (std::vector< size_t > feats) const |
|
template<typename Iter > |
Iter | erase (Iter b, Iter e) |
|
bool | empty () const |
|
decltype(auto) | operator[] (const size_t &idx) const |
|
T & | operator[] (const size_t &idx) |
|
template<typename T2 , typename R2 > |
Point< T, A_Subscript< T, Rep, R2 > > | operator[] (Point< T2, R2 > const &b) |
|
template<typename... Types> |
void | resize (Types... args) |
|
template<typename... Types> |
void | assign (Types... args) |
|
void | clear () |
|
double | norm (int p=NormType::NORM_L2) const |
| Returns the p-norm of the point. More...
|
|
T | sum (const std::function< T(T)> &f=[](T const &t) { return t;}) const |
| Compute the sum of the components of the point. More...
|
|
Point & | operator= (Point const &b) |
|
template<typename T2 , typename Rep2 > |
Point & | operator= (Point< T2, Rep2 > const &b) |
|
Point & | operator= (std::vector< T > const &b) |
|
template<typename T2 > |
Point & | operator= (std::vector< T2 > const &b) |
|
Point & | operator= (T const &b) |
|
template<typename Y > |
Point & | operator= (Y const &b) |
|
Point & | operator+= (Point const &b) |
|
Point & | operator+= (T const &b) |
|
template<typename Y > |
Point & | operator+= (Y const &b) |
|
template<typename T2 , typename Rep2 > |
Point & | operator+= (Point< T2, Rep2 > const &b) |
|
Point & | operator-= (Point const &b) |
|
template<typename T2 , typename Rep2 > |
Point & | operator-= (Point< T2, Rep2 > const &b) |
|
Point & | operator-= (T const &b) |
|
template<typename Y > |
Point & | operator-= (Y const &b) |
|
Point & | operator*= (Point const &b) |
|
template<typename T2 , typename Rep2 > |
Point & | operator*= (Point< T2, Rep2 > const &b) |
|
Point & | operator*= (T const &b) |
|
template<typename Y > |
Point & | operator*= (Y const &b) |
|
Point & | operator/= (Point const &b) |
|
template<typename T2 , typename Rep2 > |
Point & | operator/= (Point< T2, Rep2 > const &b) |
|
Point & | operator/= (T const &b) |
|
template<typename Y > |
Point & | operator/= (Y const &b) |
|
bool | operator== (Point const &rhs) const |
|
bool | operator!= (Point const &rhs) const |
|
template<typename T = double, typename Rep = std::vector<T>>
class mltk::Point< T, Rep >
Wrapper for the point data.