Public Member Functions | Private Member Functions | Private Attributes | List of all members
PLMD::mapping::PathReparameterization Class Reference

This class can be used to make a set of reference configurations equidistant. More...

#include <PathReparameterization.h>

Public Member Functions

 PathReparameterization (const Pbc &ipbc, const std::vector< Value *> &iargs, std::vector< ReferenceConfiguration *> &pp)
 
void reparameterize (const int &istart, const int &iend, const double &TOL)
 Reparameterize the frames of the path between istart and iend so as to make the spacing constant. More...
 

Private Member Functions

bool loopEnd (const int &index, const int &end, const int &inc) const
 This function is used to work out when we are at loop ends as we go through them in positive and negative order. More...
 
void calcCurrentPathSpacings (const int &istart, const int &iend)
 Calculate the current spacings for the frames between istart and iend and return the average spacing. More...
 
void reparameterizePart (const int &istart, const int &iend, const double &target, const double &TOL)
 Reparameterize the frames of the path between istart and iend and make the spacing equal to target. More...
 

Private Attributes

MultiValue mydpack
 Packs that we use to store the vectors connecting frames. More...
 
ReferenceValuePack mypack
 
Direction mydir
 Direction that is used to reparameterize configurations. More...
 
const Pbcpbc
 The PBC object that you would like to use to calculate distances. More...
 
const std::vector< Value * > & args
 The underlying value object for the arguments. More...
 
std::vector< ReferenceConfiguration * > & mypath
 Reference to path that we are reparameterizing. More...
 
std::vector< double > len
 These are the current separations and the total length of the path. More...
 
std::vector< double > sumlen
 
std::vector< double > sfrac
 
unsigned MAXCYCLES
 Maximum number of cycles in path reparameterization. More...
 

Detailed Description

This class can be used to make a set of reference configurations equidistant.

Constructor & Destructor Documentation

◆ PathReparameterization()

PLMD::mapping::PathReparameterization::PathReparameterization ( const Pbc ipbc,
const std::vector< Value *> &  iargs,
std::vector< ReferenceConfiguration *> &  pp 
)

Member Function Documentation

◆ calcCurrentPathSpacings()

void PLMD::mapping::PathReparameterization::calcCurrentPathSpacings ( const int &  istart,
const int &  iend 
)
private

Calculate the current spacings for the frames between istart and iend and return the average spacing.

◆ loopEnd()

bool PLMD::mapping::PathReparameterization::loopEnd ( const int &  index,
const int &  end,
const int &  inc 
) const
private

This function is used to work out when we are at loop ends as we go through them in positive and negative order.

◆ reparameterize()

void PLMD::mapping::PathReparameterization::reparameterize ( const int &  istart,
const int &  iend,
const double &  TOL 
)

Reparameterize the frames of the path between istart and iend so as to make the spacing constant.

◆ reparameterizePart()

void PLMD::mapping::PathReparameterization::reparameterizePart ( const int &  istart,
const int &  iend,
const double &  target,
const double &  TOL 
)
private

Reparameterize the frames of the path between istart and iend and make the spacing equal to target.

Member Data Documentation

◆ args

const std::vector<Value*>& PLMD::mapping::PathReparameterization::args
private

The underlying value object for the arguments.

◆ len

std::vector<double> PLMD::mapping::PathReparameterization::len
private

These are the current separations and the total length of the path.

◆ MAXCYCLES

unsigned PLMD::mapping::PathReparameterization::MAXCYCLES
private

Maximum number of cycles in path reparameterization.

◆ mydir

Direction PLMD::mapping::PathReparameterization::mydir
private

Direction that is used to reparameterize configurations.

◆ mydpack

MultiValue PLMD::mapping::PathReparameterization::mydpack
private

Packs that we use to store the vectors connecting frames.

◆ mypack

ReferenceValuePack PLMD::mapping::PathReparameterization::mypack
private

◆ mypath

std::vector<ReferenceConfiguration*>& PLMD::mapping::PathReparameterization::mypath
private

Reference to path that we are reparameterizing.

◆ pbc

const Pbc& PLMD::mapping::PathReparameterization::pbc
private

The PBC object that you would like to use to calculate distances.

◆ sfrac

std::vector<double> PLMD::mapping::PathReparameterization::sfrac
private

◆ sumlen

std::vector<double> PLMD::mapping::PathReparameterization::sumlen
private

The documentation for this class was generated from the following files: