Gromacs  2027.0-dev-20261112-5a4f586
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
t_ebin::EnergyAccumulation Class Reference

#include <gromacs/mdlib/ebin.h>

Description

Holds instantaneous and accumulated energies.

Public Member Functions

int64_t numSteps () const
 Returns the period in MD steps over which we accumulated data.
 
int64_t sumCount () const
 Returns the number of values in the sums.
 
gmx::ArrayRef< const t_energy > energies () const
 Returns the list of current energy values and sums.
 
double average (const int index) const
 Returns the average taken over sumCount() values. More...
 

Member Function Documentation

double t_ebin::EnergyAccumulation::average ( const int  index) const
inline

Returns the average taken over sumCount() values.

/note Should only be called when sumCount() > 0.


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