Linear regression adapter - make a std::pair
suitable for linear regression.
More...
#include <wipal/tool/linear_regression.hh>
Public Member Functions | |
template<class T1 , class T2 > | |
ImplType | x (const std::pair< T1, T2 > &p) const |
template<class T1 , class T2 > | |
ImplType | y (const std::pair< T1, T2 > &p) const |
Linear regression adapter - make a std::pair
suitable for linear regression.
For a given std::pair
p
, the x() method returns p.first
while the y() method returns p.second
.