n2p2 - A neural network potential package
|
Struct containing statistics gathered during symmetry function calculation. More...
#include <SymFncStatistics.h>
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. | |
Struct containing statistics gathered during symmetry function calculation.
Definition at line 34 of file SymFncStatistics.h.
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.
References count, countEW, element, Gmax, Gmin, max, min, sum, sum2, and type.
void SymFncStatistics::Container::reset | ( | ) |
Reset all values.
Definition at line 39 of file SymFncStatistics.cpp.
References nnp::SymFncStatistics::resetExtrapolationWarnings(), and nnp::SymFncStatistics::resetStatistics().
void SymFncStatistics::Container::resetStatistics | ( | ) |
void SymFncStatistics::Container::resetExtrapolationWarnings | ( | ) |
Reset only extrapolation warnings.
Definition at line 58 of file SymFncStatistics.cpp.
References countEW, element, Gmax, Gmin, indexAtomEW, indexStructureEW, type, and valueEW.
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(), Container(), resetStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().
std::size_t nnp::SymFncStatistics::Container::countEW |
Counts extrapolation warnings.
Definition at line 39 of file SymFncStatistics.h.
Referenced by Container(), and resetExtrapolationWarnings().
std::size_t nnp::SymFncStatistics::Container::type |
Symmetry function type.
Definition at line 41 of file SymFncStatistics.h.
Referenced by Container(), and resetExtrapolationWarnings().
double nnp::SymFncStatistics::Container::min |
Minimum symmetry function value encountered.
Definition at line 43 of file SymFncStatistics.h.
Referenced by nnp::Dataset::collectSymmetryFunctionStatistics(), Container(), resetStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().
double nnp::SymFncStatistics::Container::max |
Maximum symmetry function value encountered.
Definition at line 45 of file SymFncStatistics.h.
Referenced by nnp::Dataset::collectSymmetryFunctionStatistics(), Container(), resetStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().
double nnp::SymFncStatistics::Container::Gmin |
Minimum symmetry function from scaling data.
Definition at line 47 of file SymFncStatistics.h.
Referenced by Container(), and resetExtrapolationWarnings().
double nnp::SymFncStatistics::Container::Gmax |
Maximum symmetry function from scaling data.
Definition at line 49 of file SymFncStatistics.h.
Referenced by Container(), and resetExtrapolationWarnings().
double nnp::SymFncStatistics::Container::sum |
Sum of symmetry function values (to compute mean).
Definition at line 51 of file SymFncStatistics.h.
Referenced by nnp::Dataset::collectSymmetryFunctionStatistics(), Container(), resetStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().
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(), Container(), resetStatistics(), nnp::Dataset::writeSymmetryFunctionHistograms(), and nnp::Dataset::writeSymmetryFunctionScaling().
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().
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().
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().
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().