tool::lr::pair< ImplType > Struct Template Reference

Linear regression adapter - make a std::pair suitable for linear regression. More...

#include <wipal/tool/linear_regression.hh>

List of all members.

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


Detailed Description

template<class ImplType>
struct tool::lr::pair< ImplType >

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.

See also:
linear_regression(), lr::pair_with_microseconds.

Member Function Documentation

template<class ImplType >
template<class T1 , class T2 >
ImplType tool::lr::pair< ImplType >::x ( const std::pair< T1, T2 > &  p  )  const [inline]

Get p.first.

template<class ImplType >
template<class T1 , class T2 >
ImplType tool::lr::pair< ImplType >::y ( const std::pair< T1, T2 > &  p  )  const [inline]

Get p.second.


The documentation for this struct was generated from the following files:

Generated on Wed Apr 22 22:52:43 2009 for wipal by  doxygen 1.5.8