#include <PointWiseMapping.h>
Public Member Functions | |
PointWiseMapping (const std::string &type, const bool &checksoff) | |
void | setPropertyNames (const std::vector< std::string > &prop, const bool isp) |
Set the names of the low dimensional properties. More... | |
bool | mappingNeedsSetup () const |
Check if setup was completed. More... | |
void | clearRestOfData () |
Delete the low dimensional projections. More... | |
void | readRestOfFrame () |
Read in the data from a file. More... | |
void | resizeRestOfFrame () |
Resize everything else from a file. More... | |
void | getAtomAndArgumentRequirements (std::vector< AtomNumber > &atoms, std::vector< std::string > &args) |
Find what is required of us from the reference frames. More... | |
void | duplicateFrameList () |
Make a second copy of the frame list. More... | |
unsigned | getNumberOfMappedPoints () const |
Get the number of points we are mapping into the lower dimensional space. More... | |
unsigned | getNumberOfProperties () const |
Get the number of properties. More... | |
std::string | getPropertyName (const unsigned &i) const |
Get the name of the ith property. More... | |
unsigned | getPropertyIndex (const std::string &name) const |
Get the index of the property with name. More... | |
double | getPropertyValue (const unsigned &iframe, const unsigned &jprop) const |
Get the value of the ith property for th jth frame. More... | |
void | setNumberOfAtomsAndArguments (const unsigned &natoms, const unsigned &nargs) |
Finish setup of frames. More... | |
Vector | getAtomDerivatives (const unsigned &iframe, const unsigned &jatom) |
Get the derivatives wrt to the position of an atom. More... | |
bool | getVirial (const unsigned &iframe, Tensor &vir) |
Get the derivatives wrt to the box. More... | |
double | getArgumentDerivative (const unsigned &iframe, const unsigned &jarg) |
Ge the derivatives wrt to one of the arguments. More... | |
void | copyFrameDerivatives (const unsigned &from, const unsigned &to) |
Copy derivative information from frame number from to frame number to. More... | |
Matrix< double > & | modifyDmat () |
Get a pointer to the matrix of pairwise distances. More... | |
void | print (const std::string &method, const double &time, OFile &afile, const std::string &fmt) |
Print out the low dimensional mapping. More... | |
double | getProjectionCoordinate (const unsigned &iframe, const unsigned &jcoord) const |
Get the low dimensional embedding coordinate. More... | |
void | setProjectionCoordinate (const unsigned &iframe, const unsigned &jcoord, const double &coord) |
Set the value of the projection coordinate. More... | |
void | clearFrames () |
Delete all the data in the reference object. More... | |
void | readFrame (PDB &pdb) |
Read a frame from the input. More... | |
unsigned | getNumberOfReferenceFrames () const |
Return the size of the frames vector. More... | |
double | calcDistanceFromConfiguration (const unsigned &ifunc, const std::vector< Vector > &pos, const Pbc &pbc, const std::vector< Value * > &arg, const bool &squared) |
Calculate the distance from one of the reference points. More... | |
ReferenceConfiguration * | getFrame (const unsigned &iframe) |
Return the ith reference frame. More... | |
void | copyFrame (ReferenceConfiguration *frameToCopy) |
Copy a reference configuration into the multi reference object. More... | |
void | setWeights (const std::vector< double > &ww) |
Set the weight of the ith frame. More... | |
double | getWeight (const unsigned &ifram) const |
Retrieve the weight of one of the frames. More... | |
void | calculateAllDistances (const Pbc &pbc, const std::vector< Value * > &vals, Communicator &comm, Matrix< double > &distances, const bool &squared) |
Calculate the distances between all the frames and store in a matrix. More... | |
Protected Member Functions | |
template<class T > | |
void | parse (const std::string &key, T &val) |
Read something from the last frame. More... | |
Protected Attributes | |
std::vector < ReferenceConfiguration * > | frames |
These are the configurations that serve as references. More... | |
Private Attributes | |
bool | ispath |
This is a path. More... | |
Matrix< double > | dmat |
The matrix of interframe distances. More... | |
std::vector< std::string > | property |
The names of the projection coordinates. More... | |
std::vector< std::vector < double > > | low_dim |
These are where the reference configurations should be projected. More... | |
PLMD::PointWiseMapping::PointWiseMapping | ( | const std::string & | type, |
const bool & | checksoff | ||
) |
|
inlineinherited |
Calculate the distance from one of the reference points.
|
inherited |
Calculate the distances between all the frames and store in a matrix.
|
inherited |
Delete all the data in the reference object.
|
virtual |
Delete the low dimensional projections.
Reimplemented from PLMD::MultiReferenceBase.
|
inherited |
Copy a reference configuration into the multi reference object.
|
inline |
Copy derivative information from frame number from to frame number to.
void PLMD::PointWiseMapping::duplicateFrameList | ( | ) |
Make a second copy of the frame list.
|
inline |
Ge the derivatives wrt to one of the arguments.
void PLMD::PointWiseMapping::getAtomAndArgumentRequirements | ( | std::vector< AtomNumber > & | atoms, |
std::vector< std::string > & | args | ||
) |
Find what is required of us from the reference frames.
|
inline |
Get the derivatives wrt to the position of an atom.
|
inlineinherited |
Return the ith reference frame.
|
inline |
Get the number of points we are mapping into the lower dimensional space.
|
inline |
Get the number of properties.
|
inlineinherited |
Return the size of the frames vector.
|
inline |
Get the low dimensional embedding coordinate.
unsigned PLMD::PointWiseMapping::getPropertyIndex | ( | const std::string & | name | ) | const |
Get the index of the property with name.
|
inline |
Get the name of the ith property.
|
inline |
Get the value of the ith property for th jth frame.
|
inline |
Get the derivatives wrt to the box.
|
inlineinherited |
Retrieve the weight of one of the frames.
|
inline |
Check if setup was completed.
|
inline |
Get a pointer to the matrix of pairwise distances.
|
protectedinherited |
Read something from the last frame.
void PLMD::PointWiseMapping::print | ( | const std::string & | method, |
const double & | time, | ||
OFile & | afile, | ||
const std::string & | fmt | ||
) |
Print out the low dimensional mapping.
|
inherited |
Read a frame from the input.
|
virtual |
Read in the data from a file.
Reimplemented from PLMD::MultiReferenceBase.
|
virtual |
Resize everything else from a file.
Reimplemented from PLMD::MultiReferenceBase.
void PLMD::PointWiseMapping::setNumberOfAtomsAndArguments | ( | const unsigned & | natoms, |
const unsigned & | nargs | ||
) |
Finish setup of frames.
|
inline |
Set the value of the projection coordinate.
void PLMD::PointWiseMapping::setPropertyNames | ( | const std::vector< std::string > & | prop, |
const bool | isp | ||
) |
Set the names of the low dimensional properties.
|
inherited |
Set the weight of the ith frame.
|
private |
The matrix of interframe distances.
|
protectedinherited |
These are the configurations that serve as references.
|
private |
This is a path.
|
private |
These are where the reference configurations should be projected.
|
private |
The names of the projection coordinates.
Hosted by GitHub | 1.8.7 |