Geophysical Inversion and Modelling Library  v1.5.2-5-g042d7f36
GIMLI::TransLinear< Vec > Class Template Reference
+ Inheritance diagram for GIMLI::TransLinear< Vec >:
+ Collaboration diagram for GIMLI::TransLinear< Vec >:

Public Member Functions

 TransLinear (const Vec &factor, double offset=0.0)
 
virtual Vec trans (const Vec &x) const
 
virtual Vec invTrans (const Vec &f) const
 
virtual Vec deriv (const Vec &x) const
 
- Public Member Functions inherited from GIMLI::Trans< Vec >
 Trans ()
 
virtual ~Trans ()
 
virtual Vec operator() (const Vec &a) const
 
virtual double operator() (double x) const
 
Vec fwd (const Vec &f) const
 
double fwd (double f) const
 
Vec inv (const Vec &f) const
 
double inv (double f) const
 
virtual double trans (double x) const
 
virtual double invTrans (double f) const
 
Vec update (const Vec &a, const Vec &b) const
 
Vec error (const Vec &a, const Vec &daBya) const
 
Vec error_brute (const Vec &a, const Vec &daBya) const
 

Protected Attributes

Vec factor_
 
Vec offset_
 

Detailed Description

template<class Vec>
class GIMLI::TransLinear< Vec >

Linear multiplication and addition $ f(x) = b + a \cdot x $. With factor $ a $ and offset $ b $.

Member Function Documentation

◆ deriv()

template<class Vec >
virtual Vec GIMLI::TransLinear< Vec >::deriv ( const Vec x) const
inlinevirtual

Return $ a = \frac{\partial}{\partial x} (b + a * x) $

Reimplemented from GIMLI::Trans< Vec >.

◆ invTrans()

template<class Vec >
virtual Vec GIMLI::TransLinear< Vec >::invTrans ( const Vec f) const
inlinevirtual

Return $ x(f) = (f - b)/a $

Reimplemented from GIMLI::Trans< Vec >.

◆ trans()

template<class Vec >
virtual Vec GIMLI::TransLinear< Vec >::trans ( const Vec x) const
inlinevirtual

Return $ f(x) = b + a \cdot x $.

Reimplemented from GIMLI::Trans< Vec >.

References GIMLI::x().