mln::fun::v2v::linear< V, T, R > Struct Template Reference

Linear function. f(v) = a * v + b. V is the type of input values; T is the type used to compute the result; R is the result type. More...

#include <linear.hh>

Inheritance diagram for mln::fun::v2v::linear< V, T, R >:

Inheritance graph

List of all members.

Public Types

typedef Function_v2v< void > category
typedef E exact_t
typedef void mutable_result
typedef R result

Public Member Functions

 linear (T a, T b)
template<typename U>
operator() (const U &u) const
operator() (const V &v) const

Public Attributes

T a
T b


Detailed Description

template<typename V, typename T = V, typename R = T>
struct mln::fun::v2v::linear< V, T, R >

Linear function. f(v) = a * v + b. V is the type of input values; T is the type used to compute the result; R is the result type.

By defaut, T is V and R is T.

Definition at line 55 of file v2v/linear.hh.


Member Typedef Documentation

template<typename E>
typedef Function_v2v<void> mln::Function_v2v< E >::category [inherited]

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 172 of file object.hh.

template<typename E>
typedef void mln::Function_v2v< E >::mutable_result [inherited]

Reimplemented in mln::util::array< T >.

Definition at line 94 of file function.hh.

template<typename V, typename T = V, typename R = T>
typedef R mln::fun::v2v::linear< V, T, R >::result

Definition at line 57 of file v2v/linear.hh.


Constructor & Destructor Documentation

template<typename V, typename T, typename R>
mln::fun::v2v::linear< V, T, R >::linear ( T  a,
T  b 
) [inline]

Definition at line 91 of file v2v/linear.hh.


Member Function Documentation

template<typename V, typename T, typename R>
template<typename U>
R mln::fun::v2v::linear< V, T, R >::operator() ( const U &  u  )  const [inline]

Definition at line 109 of file v2v/linear.hh.

References mln::fun::v2v::linear< V, T, R >::operator()().

template<typename V, typename T, typename R>
R mln::fun::v2v::linear< V, T, R >::operator() ( const V &  v  )  const [inline]


Member Data Documentation

template<typename V, typename T = V, typename R = T>
T mln::fun::v2v::linear< V, T, R >::a

Definition at line 65 of file v2v/linear.hh.

Referenced by mln::fun::v2v::linear< V, T, R >::operator()().

template<typename V, typename T = V, typename R = T>
T mln::fun::v2v::linear< V, T, R >::b

Definition at line 65 of file v2v/linear.hh.

Referenced by mln::fun::v2v::linear< V, T, R >::operator()().


Generated on Sun Apr 25 02:01:49 2010 for Milena (Olena) by  doxygen 1.5.6