this class implements a general purpose class that aims to provide a Grid/list transparently add gaussians to a bias More...
#include <BiasRepresentation.h>
Public Member Functions | |
| BiasRepresentation (const std::vector< Value *> &tmpvalues, Communicator &cc) | |
| create a bias representation from a list of pointer to values More... | |
| BiasRepresentation (const std::vector< Value *> &tmpvalues, Communicator &cc, const std::vector< double > &sigma) | |
| create a bias using explicit sigma in input (needed for histogram building) More... | |
| BiasRepresentation (const std::vector< Value *> &tmpvalues, Communicator &cc, const std::vector< std::string > &gmin, const std::vector< std::string > &gmax, const std::vector< unsigned > &nbin, bool doInt, double lowI_, double uppI_) | |
| create a bias containing a grid representation More... | |
| BiasRepresentation (const std::vector< Value *> &tmpvalues, Communicator &cc, const std::vector< std::string > &gmin, const std::vector< std::string > &gmax, const std::vector< unsigned > &nbin, const std::vector< double > &sigma) | |
| create a histogram with grid representation and sigmas in input More... | |
| void | addGrid (const std::vector< std::string > &gmin, const std::vector< std::string > &gmax, const std::vector< unsigned > &nbin) |
| add the grid to the representation More... | |
| void | clear () |
| clear the representation (grid included) More... | |
| Grid * | getGridPtr () |
| get the pointer to the grid More... | |
| void | getMinMaxBin (std::vector< double > &vmin, std::vector< double > &vmax, std::vector< unsigned > &vbin) |
| get an automatic min/max from the set so to know how to configure the grid More... | |
| const std::string & | getName (unsigned i) |
| get the name of the i-th value More... | |
| std::vector< std::string > | getNames () |
| get the names of the variables More... | |
| unsigned | getNumberOfDimensions () |
| retrieve the number of dimension of the representation More... | |
| int | getNumberOfKernels () |
| get the number of kernels contained in the representation More... | |
| Value * | getPtrToValue (unsigned i) |
| get a pointer to a specific value More... | |
| const std::vector< Value * > & | getPtrToValues () |
| get the pointer to the values More... | |
| bool | hasSigmaInInput () |
| check if the sigma values are already provided (in case of a histogram representation with input sigmas) More... | |
| const bool & | isRescaledToBias () |
| check if the representation is rescaled to the bias More... | |
| void | pushKernel (IFile *ff) |
| push a kernel on the representation (includes widths and height) More... | |
| std::unique_ptr< KernelFunctions > | readFromPoint (IFile *ifile) |
| get a new histogram point from a file More... | |
| void | setRescaledToBias (bool rescaled) |
| set the flag that rescales the free energy to the bias More... | |
Private Attributes | |
| std::vector< double > | biasf |
| std::unique_ptr< Grid > | BiasGrid_ |
| bool | doInt_ |
| bool | hasgrid |
| std::vector< std::unique_ptr< KernelFunctions > > | hills |
| std::vector< double > | histosigma |
| double | lowI_ |
| Communicator & | mycomm |
| std::vector< std::string > | names |
| int | ndim |
| bool | rescaledToBias |
| double | uppI_ |
| std::vector< Value * > | values |
this class implements a general purpose class that aims to provide a Grid/list transparently add gaussians to a bias
| PLMD::BiasRepresentation::BiasRepresentation | ( | const std::vector< Value *> & | tmpvalues, |
| Communicator & | cc | ||
| ) |
create a bias representation from a list of pointer to values
the constructor here
| PLMD::BiasRepresentation::BiasRepresentation | ( | const std::vector< Value *> & | tmpvalues, |
| Communicator & | cc, | ||
| const std::vector< double > & | sigma | ||
| ) |
create a bias using explicit sigma in input (needed for histogram building)
overload the constructor: add the sigma at constructor time
| PLMD::BiasRepresentation::BiasRepresentation | ( | const std::vector< Value *> & | tmpvalues, |
| Communicator & | cc, | ||
| const std::vector< std::string > & | gmin, | ||
| const std::vector< std::string > & | gmax, | ||
| const std::vector< unsigned > & | nbin, | ||
| bool | doInt, | ||
| double | lowI_, | ||
| double | uppI_ | ||
| ) |
create a bias containing a grid representation
overload the constructor: add the grid at constructor time
| PLMD::BiasRepresentation::BiasRepresentation | ( | const std::vector< Value *> & | tmpvalues, |
| Communicator & | cc, | ||
| const std::vector< std::string > & | gmin, | ||
| const std::vector< std::string > & | gmax, | ||
| const std::vector< unsigned > & | nbin, | ||
| const std::vector< double > & | sigma | ||
| ) |
create a histogram with grid representation and sigmas in input
overload the constructor with some external sigmas: needed for histogram
| void PLMD::BiasRepresentation::addGrid | ( | const std::vector< std::string > & | gmin, |
| const std::vector< std::string > & | gmax, | ||
| const std::vector< unsigned > & | nbin | ||
| ) |
add the grid to the representation
| void PLMD::BiasRepresentation::clear | ( | ) |
clear the representation (grid included)
| Grid * PLMD::BiasRepresentation::getGridPtr | ( | ) |
get the pointer to the grid
| void PLMD::BiasRepresentation::getMinMaxBin | ( | std::vector< double > & | vmin, |
| std::vector< double > & | vmax, | ||
| std::vector< unsigned > & | vbin | ||
| ) |
get an automatic min/max from the set so to know how to configure the grid
| const string & PLMD::BiasRepresentation::getName | ( | unsigned | i | ) |
get the name of the i-th value
| vector< string > PLMD::BiasRepresentation::getNames | ( | ) |
get the names of the variables
| unsigned PLMD::BiasRepresentation::getNumberOfDimensions | ( | ) |
retrieve the number of dimension of the representation
| int PLMD::BiasRepresentation::getNumberOfKernels | ( | ) |
get the number of kernels contained in the representation
| Value * PLMD::BiasRepresentation::getPtrToValue | ( | unsigned | i | ) |
get a pointer to a specific value
| const vector< Value * > & PLMD::BiasRepresentation::getPtrToValues | ( | ) |
get the pointer to the values
| bool PLMD::BiasRepresentation::hasSigmaInInput | ( | ) |
check if the sigma values are already provided (in case of a histogram representation with input sigmas)
| const bool & PLMD::BiasRepresentation::isRescaledToBias | ( | ) |
check if the representation is rescaled to the bias
| void PLMD::BiasRepresentation::pushKernel | ( | IFile * | ff | ) |
push a kernel on the representation (includes widths and height)
| std::unique_ptr< KernelFunctions > PLMD::BiasRepresentation::readFromPoint | ( | IFile * | ifile | ) |
get a new histogram point from a file
| void PLMD::BiasRepresentation::setRescaledToBias | ( | bool | rescaled | ) |
set the flag that rescales the free energy to the bias
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Hosted by GitHub
|
1.8.14
|