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

#include <wipal/tool/linear_regression.hh>

List of all members.


Detailed Description

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

Linear regression adapter - make a std::pair of elements with microseconds suitable for linear regression.

For a given std::pair p, the x() method returns p.first.microseconds() while the y() method returns p.second.microseconds().

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

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

Member Function Documentation

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

Get p.first.microseconds().

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

Get p.second.microseconds().


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

Generated on Tue Dec 2 11:12:17 2008 for wipal by  doxygen 1.5.6