class MacrostateNumParticles : public feasst::Macrostate

Defines the macrostate to be the total number of particles in the system.

Public Functions

MacrostateNumParticles(const Histogram &histogram, argtype args = argtype())


  • particle_type: number of particles of type. If -1 (default), count all types.

MacrostateNumParticles(argtype args = argtype())

flattened version of the above constructor that takes Histogram arguments.

double value(const System &system, const Criteria &criteria, const Acceptance &acceptance) const

Return the current value of the macrostate.