1 #ifndef PhysicsTools_Utilities_SmoothStepFunction_h 2 #define PhysicsTools_Utilities_SmoothStepFunction_h 4 #include <boost/shared_ptr.hpp> 16 trend(new double(t)){}
18 double z = (x - 40)*(*
trend);
19 if(fabs(z)<0)
return 0;
20 return 2/(1+
exp(-z)) -1;
22 boost::shared_ptr<double>
trend;
SmoothStepFunction(double t)
double operator()(double x) const
SmoothStepFunction(const Parameter &t)
boost::shared_ptr< double > trend
SmoothStepFunction(boost::shared_ptr< double > t)
static const unsigned int arguments