]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Base/Functors/InvertCost.hxx
Architecture revisited.
[FrontAlgorithms.git] / lib / fpa / Base / Functors / InvertCost.hxx
1 #ifndef __FPA__BASE__FUNCTORS__INVERTCOST__HXX__
2 #define __FPA__BASE__FUNCTORS__INVERTCOST__HXX__
3
4 // -------------------------------------------------------------------------
5 template< class _TResult >
6 _TResult fpa::Base::Functors::InvertCost< _TResult >::
7 Evaluate( const _TResult& x ) const
8 {
9   return( _TResult( 1 ) / ( _TResult( 1 ) + x ) );
10 }
11
12 // -------------------------------------------------------------------------
13 template< class _TResult >
14 fpa::Base::Functors::InvertCost< _TResult >::
15 InvertCost( )
16   : Superclass( )
17 {
18 }
19
20 // -------------------------------------------------------------------------
21 template< class _TResult >
22 fpa::Base::Functors::InvertCost< _TResult >::
23 ~InvertCost( )
24 {
25 }
26
27 #endif // __FPA__BASE__FUNCTORS__INVERTCOST__HXX__
28
29 // eof - $RCSfile$