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

Encoder/decoder for neural network tau values. More...

#include <SVDSimulationTools.h>

Public Member Functions

 TauEncoder (double min_amplitude, double max_amplitude, double min_tau, double max_tau)
 Constructor takes amplitude and tau ranges, typically from a network xml file. More...
 
 TauEncoder ()
 Default constructor Parameterless constructor to default-construct the class.
 
void setBounds (double min_amplitude, double max_amplitude, double min_tau, double max_tau)
 Set encoder baounds (e.g. More...
 
double encodeTau (double tau) const
 Return encoded value for a waveform width tau value. More...
 
double decodeTau (double scaledTau) const
 Scale back a previously scaled tau value. More...
 
void print (std::ostringstream &os) const
 print tool
 

Private Attributes

double m_minAmplitude
 lower bound of amplitude range
 
double m_maxAmplitude
 upper bound of amplitdue range
 
double m_minTau
 lower bound of tau range
 
double m_maxTau
 upper bound of tau range
 
double m_ATRatio
 ratio of amplitude to tau ranges
 

Detailed Description

Encoder/decoder for neural network tau values.

Tau value is an additional input to the network along with the 6 signal samples. Therefore, it is scaled to the range of signals, more precisely, to the amplitude range.

Definition at line 212 of file SVDSimulationTools.h.

Constructor & Destructor Documentation

◆ TauEncoder()

TauEncoder ( double  min_amplitude,
double  max_amplitude,
double  min_tau,
double  max_tau 
)
inline

Constructor takes amplitude and tau ranges, typically from a network xml file.

Parameters
min_amplitudeLower bound of the amplitude range
max_amplitudeUpper bound of the amplitude range
min_tauLower bound of the tau range
max_tauUpper bound of the tau range

Definition at line 220 of file SVDSimulationTools.h.

Member Function Documentation

◆ decodeTau()

double decodeTau ( double  scaledTau) const
inline

Scale back a previously scaled tau value.

Parameters
scaledTaua previously scaled tau value
Returns
restored tau value

Definition at line 259 of file SVDSimulationTools.h.

◆ encodeTau()

double encodeTau ( double  tau) const
inline

Return encoded value for a waveform width tau value.

Parameters
tauoriginal tau value
Returns
tau value scaled to amplitude range

Definition at line 252 of file SVDSimulationTools.h.

◆ setBounds()

void setBounds ( double  min_amplitude,
double  max_amplitude,
double  min_tau,
double  max_tau 
)
inline

Set encoder baounds (e.g.

when default constructor was used)

Parameters
min_amplitudeLower bound of the amplitude range
max_amplitudeUpper bound of the amplitude range
min_tauLower bound of the tau range
max_tauUpper bound of the tau range

Definition at line 237 of file SVDSimulationTools.h.


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