ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.samplers.GaussianSampler Class Reference
Inheritance diagram for python.samplers.GaussianSampler:
Collaboration diagram for python.samplers.GaussianSampler:

Public Member Functions

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

Public Attributes

 mean
 
 sigma
 

Detailed Description

Definition at line 160 of file samplers.py.

Constructor & Destructor Documentation

◆ __init__()

def 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__()

def 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()

def 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

Definition at line 164 of file samplers.py.

◆ sigma

python.samplers.GaussianSampler.sigma

Definition at line 165 of file samplers.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
readCCLHist.float
float
Definition: readCCLHist.py:83