AnalyzeBonds

class AnalyzeBonds : public feasst::AnalyzeUpdateOnly

Compute the distribution and moments of each type of bond and angle.

Public Functions

AnalyzeBonds(const argtype &args = argtype())

args:

  • angle_bin_width: bin width for angle histogram in units of degrees. (default: 1).

  • bond_bin_width: bin width for bond histogram (default: 1).

void update(const Criteria &criteria, const System &system, const TrialFactory &trial_factory)

Perform update action.

void initialize(Criteria *criteria, System *system, TrialFactory *trial_factory)

Initialize and precompute before trials.

const Accumulator &bond(const int type) const

Return the average bond in degrees.

const Accumulator &angle(const int type) const

Return the average angle in degrees.

const Histogram &bond_hist(const int type) const

Return the histogram of bond in degrees.

const Histogram &angle_hist(const int type) const

Return the histogram of angle in degrees.