Belle II Software  release-05-02-19
SampleGenerator Class Reference

Public Member Functions

def __init__ (self, t0_bounds, tau_bounds, amplitude_bounds, sigma_bounds, tau_sigma, bin_size, wf=betaprime_wave)
 
def get_t0_bounds (self)
 
def get_amp_bounds (self)
 
def get_tau_bounds (self)
 
def set_tau_bounds (self, tau_min, tau_max)
 
def set_tau_sigma (self, tau_sigma)
 
def get_tau_sigma (self)
 
def get_sigma_bounds (self)
 
def generate (self, sample_size)
 
def get_t0_array (self)
 
def get_t0_bins (self)
 

Public Attributes

 t0_max
 
 tau_max
 
 amp_max
 
 sigma_max
 
 tau_coder
 
 tau_sigma
 
 bin_size
 
 wf
 
 tau_min
 
 n_samples
 
 stockdata
 
 t0_bins
 undocumented variable
 
 t0_bin_times
 undocumented variable
 

Detailed Description

This class generates a Pandas dataframe with a random sample of SVD strip signals with specified size and parameters.
NB:
1. We generate time bins from quantiles, do we want a regular grid?
2. Have to think of possible irregular grid.

Definition at line 194 of file SVDSimBase.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  t0_bounds,
  tau_bounds,
  amplitude_bounds,
  sigma_bounds,
  tau_sigma,
  bin_size,
  wf = betaprime_wave 
)
The constructor takes the following parameters:
t0_bounds is a tuple, (t0_min, t0_max)
tau_bounds is a tuple (tau_min, tau_max)
amplitude_bounds is a tuple (amp_min, amp_max)
sigma_bounds is a tuple (sigma_min, sigma_max)
bin_size is the % fraction of t0_min, t0_max interval corresponding to a single output t0 bin.

Definition at line 202 of file SVDSimBase.py.

202  def __init__(self, t0_bounds, tau_bounds, amplitude_bounds, sigma_bounds, tau_sigma, bin_size, wf=betaprime_wave):
203  """
204  The constructor takes the following parameters:
205  t0_bounds is a tuple, (t0_min, t0_max)
206  tau_bounds is a tuple (tau_min, tau_max)
207  amplitude_bounds is a tuple (amp_min, amp_max)
208  sigma_bounds is a tuple (sigma_min, sigma_max)
209  bin_size is the % fraction of t0_min, t0_max interval corresponding to a single output t0 bin.
210  """
211 
212  self.t0_min, self.t0_max = t0_bounds
213  self.tau_min, self.tau_max = tau_bounds
214  self.amp_min, self.amp_max = amplitude_bounds
215  self.sigma_min, self.sigma_max = sigma_bounds
216  self.tau_coder = tau_encoder(amplitude_bounds, tau_bounds)
217  self.tau_sigma = tau_sigma
218  self.bin_size = bin_size
219  self.wf = wf
220 

Member Function Documentation

◆ generate()

def generate (   self,
  sample_size 
)
Generate sample_size samples.

Definition at line 264 of file SVDSimBase.py.

◆ get_amp_bounds()

def get_amp_bounds (   self)
Get amplitude bounds of sampling space

Definition at line 227 of file SVDSimBase.py.

◆ get_sigma_bounds()

def get_sigma_bounds (   self)
Get sigma bounds

Definition at line 258 of file SVDSimBase.py.

◆ get_t0_array()

def get_t0_array (   self)
Get array of mean t0's for classifier bins

Definition at line 299 of file SVDSimBase.py.

◆ get_t0_bins()

def get_t0_bins (   self)
Get array of mean t0's for classifier bins

Definition at line 305 of file SVDSimBase.py.

◆ get_t0_bounds()

def get_t0_bounds (   self)
Get t0 bounds of sampling space

Definition at line 221 of file SVDSimBase.py.

◆ get_tau_bounds()

def get_tau_bounds (   self)
Get tau bounds of sampling space

Definition at line 233 of file SVDSimBase.py.

◆ get_tau_sigma()

def get_tau_sigma (   self)
Get width jitter for the simulation.

Definition at line 252 of file SVDSimBase.py.

◆ set_tau_bounds()

def set_tau_bounds (   self,
  tau_min,
  tau_max 
)
Set width limits for the simulation.

Definition at line 239 of file SVDSimBase.py.

◆ set_tau_sigma()

def set_tau_sigma (   self,
  tau_sigma 
)
Set width jitter for the simulation.

Definition at line 246 of file SVDSimBase.py.


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