#include <CircularMapper1d.h>
Public Member Functions | |
double | a () const |
double | b () const |
CircularMapper1d () | |
CircularMapper1d (const double ca, const double cb, const double cperiod) | |
CircularMapper1d (const LinearMapper1d &mapper, const double cperiod) | |
LinearMapper1d | linearMapper () const |
double | operator() (const double &x) const |
double | period () const |
Private Member Functions | |
void | check () |
Private Attributes | |
double | a_ |
double | b_ |
double | period_ |
1-d linear transformation functor followed by the shift of the result into the interval [-T/2, T/2], where T is the period
Definition at line 23 of file CircularMapper1d.h.
npstat::CircularMapper1d::CircularMapper1d | ( | ) | [inline] |
npstat::CircularMapper1d::CircularMapper1d | ( | const double | ca, |
const double | cb, | ||
const double | cperiod | ||
) | [inline] |
npstat::CircularMapper1d::CircularMapper1d | ( | const LinearMapper1d & | mapper, |
const double | cperiod | ||
) | [inline] |
double npstat::CircularMapper1d::a | ( | ) | const [inline] |
double npstat::CircularMapper1d::b | ( | ) | const [inline] |
void npstat::CircularMapper1d::check | ( | void | ) | [inline, private] |
Definition at line 53 of file CircularMapper1d.h.
References period_.
Referenced by CircularMapper1d().
{ if (!period_) throw npstat::NpstatInvalidArgument( "In npstat::CircularMapper1d constructor: " "invalid period argument (can not be 0)"); }
LinearMapper1d npstat::CircularMapper1d::linearMapper | ( | ) | const [inline] |
double npstat::CircularMapper1d::operator() | ( | const double & | x | ) | const [inline] |
double npstat::CircularMapper1d::period | ( | ) | const [inline] |
double npstat::CircularMapper1d::a_ [private] |
Definition at line 60 of file CircularMapper1d.h.
Referenced by a(), linearMapper(), and operator()().
double npstat::CircularMapper1d::b_ [private] |
Definition at line 61 of file CircularMapper1d.h.
Referenced by b(), linearMapper(), and operator()().
double npstat::CircularMapper1d::period_ [private] |
Definition at line 62 of file CircularMapper1d.h.
Referenced by check(), operator()(), and period().