Public Member Functions | Public Attributes | List of all members
cvn::Result Class Reference

Result, basic output of CVN neural net. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/CVN/func/Result.h"

Public Member Functions

 Result (const float *output, unsigned int &nOutputs)
 
 Result ()
 
unsigned int ArgMax ()
 Index of maximum value in vector. More...
 
unsigned int Max ()
 Maximum value in vector. More...
 
unsigned int NOutput ()
 Number of outputs, i.e. size of vector. More...
 

Public Attributes

std::vector< float > fOutput
 Vector of outputs from neural net. More...
 

Detailed Description

Result, basic output of CVN neural net.

Definition at line 15 of file Result.h.

Constructor & Destructor Documentation

cvn::Result::Result ( const float *  output,
unsigned int nOutputs 
)

Definition at line 12 of file Result.cxx.

References fOutput, and MECModelEnuComparisons::i.

12  :
13  fOutput(nOutputs)
14  {
15  for(size_t i = 0; i < nOutputs; ++i) fOutput[i] = output[i];
16  }
ofstream output
std::vector< float > fOutput
Vector of outputs from neural net.
Definition: Result.h:30
cvn::Result::Result ( )

Definition at line 18 of file Result.cxx.

18  :
19  fOutput()
20  {}
std::vector< float > fOutput
Vector of outputs from neural net.
Definition: Result.h:30

Member Function Documentation

unsigned int cvn::Result::ArgMax ( )

Index of maximum value in vector.

unsigned int cvn::Result::Max ( )

Maximum value in vector.

unsigned int cvn::Result::NOutput ( )

Number of outputs, i.e. size of vector.

Member Data Documentation

std::vector<float> cvn::Result::fOutput

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