Belle II Software development
|
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. | |
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. | |
double | encodeTau (double tau) const |
Return encoded value for a waveform width tau value. | |
double | decodeTau (double scaledTau) const |
Scale back a previously scaled tau value. | |
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 | |
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.
|
inline |
Constructor takes amplitude and tau ranges, typically from a network xml file.
min_amplitude | Lower bound of the amplitude range |
max_amplitude | Upper bound of the amplitude range |
min_tau | Lower bound of the tau range |
max_tau | Upper bound of the tau range |
Definition at line 220 of file SVDSimulationTools.h.
|
inline |
Default constructor Parameterless constructor to default-construct the class.
Definition at line 229 of file SVDSimulationTools.h.
|
inline |
Scale back a previously scaled tau value.
scaledTau | a previously scaled tau value |
Definition at line 259 of file SVDSimulationTools.h.
|
inline |
Return encoded value for a waveform width tau value.
tau | original tau value |
Definition at line 252 of file SVDSimulationTools.h.
|
inline |
print tool
Definition at line 263 of file SVDSimulationTools.h.
|
inline |
Set encoder baounds (e.g.
when default constructor was used)
min_amplitude | Lower bound of the amplitude range |
max_amplitude | Upper bound of the amplitude range |
min_tau | Lower bound of the tau range |
max_tau | Upper bound of the tau range |
Definition at line 237 of file SVDSimulationTools.h.
|
private |
ratio of amplitude to tau ranges
Definition at line 276 of file SVDSimulationTools.h.
|
private |
upper bound of amplitdue range
Definition at line 273 of file SVDSimulationTools.h.
|
private |
upper bound of tau range
Definition at line 275 of file SVDSimulationTools.h.
|
private |
lower bound of amplitude range
Definition at line 272 of file SVDSimulationTools.h.
|
private |
lower bound of tau range
Definition at line 274 of file SVDSimulationTools.h.