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_;
void setParam(double max, int nBin)
Set parameters and initialize.
void serialize(Archive &ar, const unsigned int version)
Serialize this Distribution to/from an archive.
void output(std::ostream &out)
Output the distribution to file.
void setOutputIntegral(bool outputIntegral)
Set true to enable output of spatial integral of g(r).
RadialDistribution()
Default constructor.
void serialize(Archive &ar, const unsigned int version)
Serialize this RadialDistribution to/from an archive.
Saving / output archive for binary ostream.
long nSnapshot()
Get number of snapshots.
void setNorm(double norm)
Set the factor used to normalize the RDF before output.
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an archive.
void beginSnapshot()
Mark the beginning of a "snapshot" (i.e., a sampled time step).
Utility classes for scientific computation.
RadialDistribution & operator=(const RadialDistribution &other)
Assignment.
virtual void save(Serializable::OArchive &ar)
Save internal state to an archive.
Saving archive for binary istream.
virtual void readParameters(std::istream &in)
Read values of min, max, and nBin from file.
int nBin() const
Get the number of bins.
Distribution (or histogram) of values for particle separations.
virtual void clear()
Clear all accumulators.
A distribution (or histogram) of values for a real variable.
double max() const
Get maximum value in range of histogram.