#include <ElectroWeakAnalysis/ZMuMu/interface/SmoothStepFunction.h>
Public Member Functions | |
double | operator() (double x) const |
SmoothStepFunction (double t) | |
SmoothStepFunction (boost::shared_ptr< double > t) | |
SmoothStepFunction (const Parameter &t) | |
Public Attributes | |
boost::shared_ptr< double > | trend |
Static Public Attributes | |
static const unsigned int | arguments = 1 |
Definition at line 9 of file SmoothStepFunction.h.
function::SmoothStepFunction::SmoothStepFunction | ( | const Parameter & | t | ) | [inline] |
function::SmoothStepFunction::SmoothStepFunction | ( | boost::shared_ptr< double > | t | ) | [inline] |
function::SmoothStepFunction::SmoothStepFunction | ( | double | t | ) | [inline] |
double function::SmoothStepFunction::operator() | ( | double | x | ) | const [inline] |
Definition at line 17 of file SmoothStepFunction.h.
References funct::exp(), trend, and z.
00017 { 00018 double z = (x - 40)*(*trend); 00019 if(fabs(z)<0) return 0; 00020 return 2/(1+exp(-z)) -1; 00021 }
const unsigned int function::SmoothStepFunction::arguments = 1 [static] |
Definition at line 10 of file SmoothStepFunction.h.
boost::shared_ptr<double> function::SmoothStepFunction::trend |
Definition at line 22 of file SmoothStepFunction.h.
Referenced by operator()(), and SmoothStepFunction().