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_;
int nBin() const
Get the number of bins.
void serialize(Archive &ar, const unsigned int version)
Serialize this Distribution to/from an archive.
Distribution()
Default constructor.
double max() const
Get maximum value in range of histogram.
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.
BinaryFileIArchive IArchive
Type of input archive used by load method.
BinaryFileOArchive OArchive
Type of output archive used by save method.
Utility classes for scientific computation.