n2p2 - A neural network potential package
Loading...
Searching...
No Matches
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.
 
void reset ()
 Reset all values.
 
void resetStatistics ()
 Reset only statistics.
 
void resetExtrapolationWarnings ()
 Reset only extrapolation warnings.
 

Public Attributes

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

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.

References count, countEW, element, Gmax, Gmin, max, min, sum, sum2, and type.

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}

References count, max, min, sum, and sum2.

◆ 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.

References countEW, element, Gmax, Gmin, indexAtomEW, indexStructureEW, type, and valueEW.

Member Data Documentation

◆ count

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

◆ countEW

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

Counts extrapolation warnings.

Definition at line 39 of file SymFncStatistics.h.

Referenced by Container(), and resetExtrapolationWarnings().

◆ type

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

Symmetry function type.

Definition at line 41 of file SymFncStatistics.h.

Referenced by Container(), and resetExtrapolationWarnings().

◆ 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.

Referenced by Container(), and resetExtrapolationWarnings().

◆ Gmax

double nnp::SymFncStatistics::Container::Gmax

Maximum symmetry function from scaling data.

Definition at line 49 of file SymFncStatistics.h.

Referenced by Container(), and resetExtrapolationWarnings().

◆ sum

double nnp::SymFncStatistics::Container::sum

◆ sum2

double nnp::SymFncStatistics::Container::sum2

◆ element

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

Element string of central atom of symmetry function.

Definition at line 55 of file SymFncStatistics.h.

Referenced by Container(), and resetExtrapolationWarnings().

◆ 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.

Referenced by resetExtrapolationWarnings().

◆ 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.

Referenced by resetExtrapolationWarnings().

◆ valueEW

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

Out-of-bounds values causing extrapolation warnings.

Definition at line 61 of file SymFncStatistics.h.

Referenced by resetExtrapolationWarnings().


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