28 void addSample(
const std::vector<float>& input,
const std::vector<float>& target)
Struct for training data of a single MLP for the neuro trigger.
std::vector< std::vector< float > > m_inputSamples
list of input vectors for network training.
GRLMLPData()
default constructor.
const std::vector< float > & getInput(unsigned i) const
get input vector of sample i
const std::vector< float > & getTarget(unsigned i) const
get target value of sample i
unsigned getNumberOfSamples() const
get number of samples (same for input and target)
std::vector< std::vector< float > > m_targetSamples
list of target values for network training.
ClassDef(GRLMLPData, 1)
Needed to make the ROOT object storable.
void addSample(const std::vector< float > &input, const std::vector< float > &target)
add a pair of input and target
~GRLMLPData()
destructor, empty because we don't allocate memory anywhere.
Abstract base class for different kinds of events.