Belle II Software  release-08-01-10
tau_encoder Class Reference

Public Member Functions

def __init__ (self, amp_range, tau_range)
 
def encode (self, tau)
 
def decode (self, etau)
 

Public Attributes

 amp_max
 amp range
 
 tau_max
 tau range
 
 at_ratio
 at ratio
 

Detailed Description

A simple class to encode and decode tau values for network training
based on amplitude and tau ranges.

Definition at line 171 of file SVDSimBase.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  amp_range,
  tau_range 
)
creates the class

Definition at line 178 of file SVDSimBase.py.

178  def __init__(self, amp_range, tau_range):
179  """
180  creates the class
181  """
182 
183  self.amp_min, self.amp_max = amp_range
184 
185  self.tau_min, self.tau_max = tau_range
186 
187  self.at_ratio = (self.amp_max - self.amp_min) / (self.tau_max - self.tau_min)
188 

Member Function Documentation

◆ decode()

def decode (   self,
  etau 
)
decoder of tau values for network training

Definition at line 195 of file SVDSimBase.py.

◆ encode()

def encode (   self,
  tau 
)
encoder of tau values for network training

Definition at line 189 of file SVDSimBase.py.


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