CMS 3D CMS Logo

Public Member Functions | Public Attributes

funct::Exponential Struct Reference

#include <Exponential.h>

List of all members.

Public Member Functions

 Exponential (const Parameter &l)
 Exponential (boost::shared_ptr< double > l)
 Exponential (double l)
double operator() (double x) const

Public Attributes

boost::shared_ptr< double > lambda

Detailed Description

Definition at line 9 of file Exponential.h.


Constructor & Destructor Documentation

funct::Exponential::Exponential ( const Parameter l) [inline]

Definition at line 10 of file Exponential.h.

: lambda(l.ptr()) { }
funct::Exponential::Exponential ( boost::shared_ptr< double >  l) [inline]

Definition at line 11 of file Exponential.h.

: lambda(l) { }
funct::Exponential::Exponential ( double  l) [inline]

Definition at line 12 of file Exponential.h.

: lambda(new double(l)) { }

Member Function Documentation

double funct::Exponential::operator() ( double  x) const [inline]

Definition at line 13 of file Exponential.h.

References funct::exp(), and lambda.

{ return std::exp((*lambda)*x); }

Member Data Documentation

boost::shared_ptr<double> funct::Exponential::lambda

Definition at line 14 of file Exponential.h.

Referenced by operator()().