#include <LinearMapper1d.h>
Public Member Functions | |
double | a () const |
double | b () const |
LinearMapper1d | inverse () const |
LinearMapper1d () | |
LinearMapper1d (const double x0, const double y0, const double x1, const double y1) | |
LinearMapper1d (const double ca, const double cb) | |
double | operator() (const double &x) const |
LinearMapper1d | operator* (const LinearMapper1d &r) const |
Private Attributes | |
double | a_ |
double | b_ |
Functor which performs linear mapping in 1-d
Definition at line 18 of file LinearMapper1d.h.
|
inline |
Default constructor builds an identity transformation
Definition at line 21 of file LinearMapper1d.h.
Referenced by inverse(), and operator*().
|
inline |
Transform definition from two points. The point at x0 is mapped into y0, the point at x1 is mapped into y1. The linear transformation is thus fully defined.
Definition at line 28 of file LinearMapper1d.h.
References a_, b_, PVValHelper::dx, and testProducerWithPsetDescEmpty_cfi::y1.
|
inline |
Explicitly provide the transform coefficients as in y = ca*x + cb
Definition at line 39 of file LinearMapper1d.h.
|
inline |
Get the linear coefficient of the transform
Definition at line 45 of file LinearMapper1d.h.
References a_.
|
inline |
|
inline |
Create the inverse transform
Definition at line 51 of file LinearMapper1d.h.
References a_, b_, and LinearMapper1d().
|
inline |
|
inline |
Sequence of two transforms: the one on the right is applied first
Definition at line 60 of file LinearMapper1d.h.
References a_, b_, and LinearMapper1d().
|
private |
Definition at line 63 of file LinearMapper1d.h.
Referenced by a(), inverse(), LinearMapper1d(), operator()(), and operator*().
|
private |
Definition at line 64 of file LinearMapper1d.h.
Referenced by b(), inverse(), LinearMapper1d(), operator()(), and operator*().