|
| ReferenceArguments (const ReferenceConfigurationOptions &ro) |
|
virtual double | calc (const std::vector< Vector > &pos, const Pbc &pbc, const std::vector< Value *> &vals, const std::vector< double > &args, ReferenceValuePack &myder, const bool &squared) const =0 |
| Calculate the distance from the reference configuration. More...
|
|
double | calculate (const std::vector< Vector > &pos, const Pbc &pbc, const std::vector< Value *> &vals, ReferenceValuePack &myder, const bool &squared=false) const |
| Calculate the distance from the reference configuration. More...
|
|
virtual double | calculateArgumentDistance (const std::vector< Value *> &vals, const std::vector< double > &arg, ReferenceValuePack &myder, const bool &squared) const |
| Calculate the euclidean/malanobius distance the atoms have moved from the reference configuration in CV space. More...
|
|
void | copyDerivatives (const ReferenceConfiguration *) |
| Parse something from the pdb remarks Copy derivatives from one frame to this frame. More...
|
|
void | displaceReferenceArguments (const double &weight, const std::vector< double > &displace) |
| Displace the positions of the reference atoms. More...
|
|
void | displaceReferenceConfiguration (const double &weight, Direction &dir) |
| Move the reference configuration by an ammount specified using a Direction. More...
|
|
virtual void | extractArgumentDisplacement (const std::vector< Value *> &vals, const std::vector< double > &arg, std::vector< double > &dirout) const |
| Extract the displacement from a position in a space. More...
|
|
void | extractDisplacementVector (const std::vector< Vector > &pos, const std::vector< Value *> &vals, const std::vector< double > &arg, const bool &nflag, Direction &mydir) const |
| Extract a Direction giving you the displacement from some position. More...
|
|
virtual const std::vector< AtomNumber > & | getAbsoluteIndexes () |
| These are overwritten in ReferenceArguments and ReferenceAtoms to make frame copying work. More...
|
|
const std::vector< std::string > & | getArgumentNames () override |
| Return names. More...
|
|
void | getArgumentRequests (std::vector< std::string > &, bool disable_checks=false) override |
| Get the arguments required. More...
|
|
virtual void | getAtomRequests (std::vector< AtomNumber > &, bool disable_checks=false) |
| Retrieve the atoms that are required for this guy. More...
|
|
std::string | getName () const |
| Return the name of this metric. More...
|
|
unsigned | getNumberOfReferenceArguments () const override |
| Get the number of reference arguments. More...
|
|
virtual unsigned | getNumberOfReferencePositions () const |
|
double | getReferenceArgument (const unsigned &i) const override |
| Get the value of the ith reference argument. More...
|
|
const std::vector< double > & | getReferenceArguments () const override |
| Return all the reference arguments. More...
|
|
const std::vector< double > & | getReferenceMetric () override |
|
virtual const std::vector< Vector > & | getReferencePositions () const |
| These are overwritten in ReferenceArguments and ReferenceAtoms but are required here to make PLMD::distance work. More...
|
|
void | moveReferenceArguments (const std::vector< double > &arg_vals) |
| Set the positions of the reference arguments. More...
|
|
virtual bool | pcaIsEnabledForThisReference () |
| Stuff for pca. More...
|
|
double | projectArgDisplacementOnVector (const std::vector< double > &eigv, const std::vector< Value *> &vals, const std::vector< double > &arg, ReferenceValuePack &mypack) const |
| Project the displacement of the arguments on a vector. More...
|
|
double | projectDisplacementOnVector (const Direction &mydir, const std::vector< Value *> &vals, const std::vector< double > &arg, ReferenceValuePack &mypack) const |
|
virtual void | read (const PDB &)=0 |
| Do all local business for setting the configuration. More...
|
|
void | setReferenceArguments (const std::vector< double > &arg_vals, const std::vector< double > &sigma) |
| Set the positions of the refernce arguments. More...
|
|
virtual void | setupPCAStorage (ReferenceValuePack &mypack) |
| Stuff to setup pca. More...
|
|
In many applications (e.g.
paths, fields, property maps) it is necessary to calculate the distance between two configurations. These distances can be calculated in a variety of different ways. For instance, one can assert that the distance between the two configuration is the distance one would have to move all the atoms to transform configuration 1 into configuration
- Alternatively, one could calculate the values of a large set of collective coordinates in the two configurations and then calculate the Euclidean distances between these two points in the resulting high-dimensional vector space. Lastly, one can combine these two forms of distance calculation to calculate a hybrid distance. Plumed allows one to use all these forms of distance calculations and also to implement new forms of distance. You should inherit from this class if your distance involves reference colvar values. This class and PLMD::ReferenceAtoms mirror the functionalities in PLMD::ActionWithArguments and PLMD::ActionAtomistic respectively but for distances.