List of all members.
Public Member Functions |
| bw (double a_height=1, double a_center=0, double a_width=1) |
virtual | ~bw () |
| bw (const bw &a_from) |
bw & | operator= (const bw &a_from) |
bool | in_domain (double) const |
double | value (double a_x) const |
void | set (double a_height, double a_center, double a_width) |
void | height (double a_height) |
void | center (double a_center) |
void | width (double a_width) |
double | height () const |
double | center () const |
double | width () const |
Detailed Description
Definition at line 62 of file func.
Constructor & Destructor Documentation
inlib::func::bw::bw |
( |
double |
a_height = 1 , |
|
|
double |
a_center = 0 , |
|
|
double |
a_width = 1 |
|
) |
| [inline] |
Definition at line 64 of file func.
{
set(a_height,a_center,a_width);
}
virtual inlib::func::bw::~bw |
( |
| ) |
[inline, virtual] |
Definition at line 67 of file func.
inlib::func::bw::bw |
( |
const bw & |
a_from | ) |
[inline] |
Definition at line 69 of file func.
:m_height(a_from.m_height)
,m_center(a_from.m_center)
,m_width(a_from.m_width)
{}
Member Function Documentation
void inlib::func::bw::center |
( |
double |
a_center | ) |
[inline] |
Definition at line 94 of file func.
double inlib::func::bw::center |
( |
| ) |
const [inline] |
Definition at line 100 of file func.
void inlib::func::bw::height |
( |
double |
a_height | ) |
[inline] |
Definition at line 93 of file func.
double inlib::func::bw::height |
( |
| ) |
const [inline] |
Definition at line 99 of file func.
bool inlib::func::bw::in_domain |
( |
double |
| ) |
const [inline] |
Definition at line 81 of file func.
bw& inlib::func::bw::operator= |
( |
const bw & |
a_from | ) |
[inline] |
Definition at line 74 of file func.
{
m_height = a_from.m_height;
m_center = a_from.m_center;
m_width = a_from.m_width;
return *this;
}
void inlib::func::bw::set |
( |
double |
a_height, |
|
|
double |
a_center, |
|
|
double |
a_width |
|
) |
| [inline] |
Definition at line 87 of file func.
{
m_height = a_height;
m_center = a_center;
m_width = a_width;
if(m_width<=0) m_width = 1;
}
double inlib::func::bw::value |
( |
double |
a_x | ) |
const [inline] |
Definition at line 82 of file func.
{
double value = 2.*(a_x - m_center)/m_width;
return m_height/(1. + value * value);
}
void inlib::func::bw::width |
( |
double |
a_width | ) |
[inline] |
Definition at line 95 of file func.
{
m_width = a_width;
if(m_width<=0) m_width = 1;
}
double inlib::func::bw::width |
( |
| ) |
const [inline] |
Definition at line 101 of file func.
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/func