ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Utils::Accumulator Class Reference

#include <Accumulator.hpp>

Public Member Functions

 Accumulator (std::size_t N)
void operator() (const std::vector< double > &)
std::vector< double > mean () const
 Compute the sample mean.
std::vector< double > variance () const
 Compute the Bessel-corrected sample variance, assuming uncorrelated data.
std::vector< double > std_error () const
 Compute the standard error of the mean, assuming uncorrelated data.

Friends

class boost::serialization::access

Detailed Description

Definition at line 49 of file Accumulator.hpp.

Constructor & Destructor Documentation

◆ Accumulator()

Utils::Accumulator::Accumulator ( std::size_t N)
inlineexplicit

Definition at line 51 of file Accumulator.hpp.

Member Function Documentation

◆ mean()

std::vector< double > Utils::Accumulator::mean ( ) const
inline

Compute the sample mean.

Definition at line 95 of file Accumulator.hpp.

References mean().

Referenced by mean().

◆ operator()()

void Utils::Accumulator::operator() ( const std::vector< double > & data)
inline

Definition at line 69 of file Accumulator.hpp.

◆ std_error()

std::vector< double > Utils::Accumulator::std_error ( ) const
inline

Compute the standard error of the mean, assuming uncorrelated data.

Definition at line 124 of file Accumulator.hpp.

References std_error(), and variance().

Referenced by std_error().

◆ variance()

std::vector< double > Utils::Accumulator::variance ( ) const
inline

Compute the Bessel-corrected sample variance, assuming uncorrelated data.

Definition at line 106 of file Accumulator.hpp.

References variance().

Referenced by std_error(), and variance().

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 61 of file Accumulator.hpp.

References boost::serialization::access.

Referenced by boost::serialization::access.


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