npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::LogMapper1d Class Reference

#include <LogMapper1d.hh>

Public Member Functions

 LogMapper1d ()
 
 LogMapper1d (const double x0, const double y0, const double x1, const double y1)
 
 LogMapper1d (const double ca, const double cb)
 
double operator() (const double &x) const
 
double a () const
 
double b () const
 

Detailed Description

Functor which performs log-linear mapping in 1-d (log in x)

Constructor & Destructor Documentation

◆ LogMapper1d() [1/3]

npstat::LogMapper1d::LogMapper1d ( )
inline

The default constructor creates a transform y = log(x)

◆ LogMapper1d() [2/3]

npstat::LogMapper1d::LogMapper1d ( const double  x0,
const double  y0,
const double  x1,
const double  y1 
)
inline

The point at x0 is mapped into y0, the point at x1 is mapped into y1. x0 and x1 must be positive and distinct. Points between x0 and x1 are mapped into y in such a way that the transformation is linear in the log(x) space.

◆ LogMapper1d() [3/3]

npstat::LogMapper1d::LogMapper1d ( const double  ca,
const double  cb 
)
inline

Explicit constructor for the transform y = ca*log(x) + cb

Member Function Documentation

◆ a()

double npstat::LogMapper1d::a ( ) const
inline

Get the linear coefficient of the transform

◆ b()

double npstat::LogMapper1d::b ( ) const
inline

Get the transform constant

◆ operator()()

double npstat::LogMapper1d::operator() ( const double &  x) const
inline

Perform the transformation


The documentation for this class was generated from the following file: