n2p2 - A neural network potential package
nnp::SymFncStatistics::Container Struct Reference

Struct containing statistics gathered during symmetry function calculation. More...

#include <SymFncStatistics.h>

Collaboration diagram for nnp::SymFncStatistics::Container:

Public Member Functions

 Container ()
 Constructor, initializes contents to zero. More...
 
void reset ()
 Reset all values. More...
 
void resetStatistics ()
 Reset only statistics. More...
 
void resetExtrapolationWarnings ()
 Reset only extrapolation warnings. More...
 

Public Attributes

std::size_t count
 Counts total number of symmetry function evaluations. More...
 
std::size_t countEW
 Counts extrapolation warnings. More...
 
std::size_t type
 Symmetry function type. More...
 
double min
 Minimum symmetry function value encountered. More...
 
double max
 Maximum symmetry function value encountered. More...
 
double Gmin
 Minimum symmetry function from scaling data. More...
 
double Gmax
 Maximum symmetry function from scaling data. More...
 
double sum
 Sum of symmetry function values (to compute mean). More...
 
double sum2
 Sum of squared symmetry function values (to compute sigma). More...
 
std::string element
 Element string of central atom of symmetry function. More...
 
std::vector< std::size_t > indexStructureEW
 Structure indices for which extrapolation warnings occured. More...
 
std::vector< std::size_t > indexAtomEW
 Atom indices for which extrapolation warnings occured. More...
 
std::vector< double > valueEW
 Out-of-bounds values causing extrapolation warnings. More...
 

Detailed Description

Struct containing statistics gathered during symmetry function calculation.

Definition at line 34 of file SymFncStatistics.h.

Constructor & Destructor Documentation

◆ Container()

SymFncStatistics::Container::Container ( )

Constructor, initializes contents to zero.

Except min, max which are initialized to largest positive and negative double values, respectively.

Definition at line 25 of file SymFncStatistics.cpp.

25 :
26 count (0 ),
27 countEW(0 ),
28 type (0 ),
29 min ( numeric_limits<double>::max()),
30 max (-numeric_limits<double>::max()),
31 Gmin (0.0 ),
32 Gmax (0.0 ),
33 sum (0.0 ),
34 sum2 (0.0 ),
35 element("" )
36{
37}
double min
Minimum symmetry function value encountered.
double sum2
Sum of squared symmetry function values (to compute sigma).
std::size_t countEW
Counts extrapolation warnings.
double sum
Sum of symmetry function values (to compute mean).
std::string element
Element string of central atom of symmetry function.
double Gmax
Maximum symmetry function from scaling data.
std::size_t type
Symmetry function type.
double max
Maximum symmetry function value encountered.
std::size_t count
Counts total number of symmetry function evaluations.
double Gmin
Minimum symmetry function from scaling data.

Member Function Documentation

◆ reset()

void SymFncStatistics::Container::reset ( )

Reset all values.

Definition at line 39 of file SymFncStatistics.cpp.

40{
43
44 return;
45}
void resetStatistics()
Reset only statistics.
void resetExtrapolationWarnings()
Reset only extrapolation warnings.

References nnp::SymFncStatistics::resetExtrapolationWarnings(), and nnp::SymFncStatistics::resetStatistics().

Here is the call graph for this function:

◆ resetStatistics()

void SymFncStatistics::Container::resetStatistics ( )

Reset only statistics.

Definition at line 47 of file SymFncStatistics.cpp.

48{
49 count = 0;
50 min = numeric_limits<double>::max();
51 max = -numeric_limits<double>::max();
52 sum = 0.0;
53 sum2 = 0.0;
54
55 return;
56}

◆ resetExtrapolationWarnings()

void SymFncStatistics::Container::resetExtrapolationWarnings ( )

Reset only extrapolation warnings.

Definition at line 58 of file SymFncStatistics.cpp.

59{
60 countEW = 0;
61 Gmin = 0.0;
62 Gmax = 0.0;
63 type = 0;
64 element = "";
65 indexStructureEW.clear();
66 indexAtomEW.clear();
67 valueEW.clear();
68
69 return;
70}
std::vector< std::size_t > indexStructureEW
Structure indices for which extrapolation warnings occured.
std::vector< double > valueEW
Out-of-bounds values causing extrapolation warnings.
std::vector< std::size_t > indexAtomEW
Atom indices for which extrapolation warnings occured.

Member Data Documentation

◆ count

std::size_t nnp::SymFncStatistics::Container::count

Counts total number of symmetry function evaluations.

Definition at line 37 of file SymFncStatistics.h.

Referenced by nnp::Dataset::collectSymmetryFunctionStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().

◆ countEW

std::size_t nnp::SymFncStatistics::Container::countEW

Counts extrapolation warnings.

Definition at line 39 of file SymFncStatistics.h.

◆ type

std::size_t nnp::SymFncStatistics::Container::type

Symmetry function type.

Definition at line 41 of file SymFncStatistics.h.

◆ min

double nnp::SymFncStatistics::Container::min

◆ max

double nnp::SymFncStatistics::Container::max

◆ Gmin

double nnp::SymFncStatistics::Container::Gmin

Minimum symmetry function from scaling data.

Definition at line 47 of file SymFncStatistics.h.

◆ Gmax

double nnp::SymFncStatistics::Container::Gmax

Maximum symmetry function from scaling data.

Definition at line 49 of file SymFncStatistics.h.

◆ sum

double nnp::SymFncStatistics::Container::sum

◆ sum2

double nnp::SymFncStatistics::Container::sum2

Sum of squared symmetry function values (to compute sigma).

Definition at line 53 of file SymFncStatistics.h.

Referenced by nnp::Dataset::collectSymmetryFunctionStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().

◆ element

std::string nnp::SymFncStatistics::Container::element

Element string of central atom of symmetry function.

Definition at line 55 of file SymFncStatistics.h.

◆ indexStructureEW

std::vector<std::size_t> nnp::SymFncStatistics::Container::indexStructureEW

Structure indices for which extrapolation warnings occured.

Definition at line 57 of file SymFncStatistics.h.

◆ indexAtomEW

std::vector<std::size_t> nnp::SymFncStatistics::Container::indexAtomEW

Atom indices for which extrapolation warnings occured.

Definition at line 59 of file SymFncStatistics.h.

◆ valueEW

std::vector<double> nnp::SymFncStatistics::Container::valueEW

Out-of-bounds values causing extrapolation warnings.

Definition at line 61 of file SymFncStatistics.h.


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