ATLAS Offline Software
Loading...
Searching...
No Matches
python.samplers.GaussianSampler Class Reference
Inheritance diagram for python.samplers.GaussianSampler:
Collaboration diagram for python.samplers.GaussianSampler:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, mean, sigma)
 shoot (self)
 __call__ (self)

Public Attributes

 mean = float(mean)
 sigma = float(sigma)

Detailed Description

Definition at line 160 of file samplers.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.samplers.GaussianSampler.__init__ ( self,
mean,
sigma )

Definition at line 163 of file samplers.py.

163 def __init__(self, mean, sigma):
164 self.mean = float(mean)
165 self.sigma = float(sigma)
166

Member Function Documentation

◆ __call__()

python.samplers.Sampler.__call__ ( self)
inherited
This is the call method that will actually be used (so that normal
functions can also be passed in as samplers).

Definition at line 17 of file samplers.py.

17 def __call__(self):
18 """This is the call method that will actually be used (so that normal
19 functions can also be passed in as samplers)."""
20 return self.shoot()
21

◆ shoot()

python.samplers.GaussianSampler.shoot ( self)

Reimplemented from python.samplers.Sampler.

Definition at line 167 of file samplers.py.

167 def shoot(self):
168 return random.gauss(self.mean, self.sigma)
169
170

Member Data Documentation

◆ mean

python.samplers.GaussianSampler.mean = float(mean)

Definition at line 164 of file samplers.py.

◆ sigma

python.samplers.GaussianSampler.sigma = float(sigma)

Definition at line 165 of file samplers.py.


The documentation for this class was generated from the following file: