1#ifndef UTIL_RADIAL_DISTRIBUTION_H
2#define UTIL_RADIAL_DISTRIBUTION_H
11#include <util/accumulators/Distribution.h>
83 template <
class Archive>
84 void serialize(Archive& ar,
const unsigned int version);
115 void output(std::ostream& out);
144 bool outputIntegral_;
154 {
return nSnapshot_; }
159 template <
class Archive>
165 ar & outputIntegral_;
Saving archive for binary istream.
Saving / output archive for binary ostream.
A distribution (or histogram) of values for a real variable.
int nBin() const
Get the number of bins.
void serialize(Archive &ar, const unsigned int version)
Serialize this Distribution to/from an archive.
double max() const
Get maximum value in range of histogram.
Distribution (or histogram) of values for particle separations.
void setParam(double max, int nBin)
Set parameters and initialize.
virtual void readParameters(std::istream &in)
Read values of min, max, and nBin from file.
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an archive.
void setNorm(double norm)
Set the factor used to normalize the RDF before output.
RadialDistribution()
Default constructor.
virtual void save(Serializable::OArchive &ar)
Save internal state to an archive.
long nSnapshot()
Get number of snapshots.
void setOutputIntegral(bool outputIntegral)
Set true to enable output of spatial integral of g(r).
RadialDistribution & operator=(const RadialDistribution &other)
Assignment.
void output(std::ostream &out)
Output the distribution to file.
void serialize(Archive &ar, const unsigned int version)
Serialize this RadialDistribution to/from an archive.
void beginSnapshot()
Mark the beginning of a "snapshot" (i.e., a sampled time step).
virtual void clear()
Clear all accumulators.
Utility classes for scientific computation.