#include <wipal/tool/linear_regression.hh>
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
.
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 |
ImplType tool::lr::pair< ImplType >::x | ( | const std::pair< T1, T2 > & | p | ) | const [inline] |
Get p.first
.
ImplType tool::lr::pair< ImplType >::y | ( | const std::pair< T1, T2 > & | p | ) | const [inline] |
Get p.second
.