Result.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file Result.h
3 /// \brief Result for CVN
4 /// \author Dominick Rocco - rocco@physics.umn.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef CVN_RESULT_H
8 #define CVN_RESULT_H
9 
10 #include <vector>
11 
12 namespace cvn
13 {
14  /// Result, basic output of CVN neural net
15  class Result
16  {
17  public:
18  Result(const float* output, unsigned int& nOutputs);
19  Result();
20 
21  /// Index of maximum value in vector
22  unsigned int ArgMax();
23 
24  /// Maximum value in vector
25  unsigned int Max();
26 
27  /// Number of outputs, i.e. size of vector
28  unsigned int NOutput();
29 
30  std::vector<float> fOutput; ///< Vector of outputs from neural net
31 
32  };
33 }
34 
35 #endif // CVN_RESULT_H
36 
ofstream output
unsigned int Max()
Maximum value in vector.
Defines an enumeration for prong classification.
std::vector< float > fOutput
Vector of outputs from neural net.
Definition: Result.h:30
unsigned int ArgMax()
Index of maximum value in vector.
unsigned int NOutput()
Number of outputs, i.e. size of vector.
Result, basic output of CVN neural net.
Definition: Result.h:15