|
SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Calculates the inner product of all the basis functions and the histogram. More...
#include <Basis.h>
Public Member Functions | |
| BasisEvaluator (const std::vector< BasisFunction * > &functions) | |
| Constructor. More... | |
| void | CoeffInit () |
| Initializes coefficient lookup vector. More... | |
| void | BasisInit () |
| Creates lookup table for basis functions. | |
| void | UpdateBias (Grid< double > *bias, Grid< std::vector< double >> *grad) |
| Outputs the basis projection at a specific coordinate. More... | |
| double | UpdateCoeff (const std::vector< double > &array, Grid< unsigned int > *hist) |
| std::vector< double > | GetCoeff (void) |
| Gets the coefficient array. More... | |
| void | SetCoeff (const std::vector< double > &coeff) |
| Set the coefficient array in the event of a restart run. More... | |
Private Attributes | |
| std::vector< Map > | coeff_ |
| Vector of basis function coefficients. | |
| std::vector< BasisFunction * > | functions_ |
| Vector of basis functions. | |
| std::vector< BasisLUT > | lookup_ |
| Lookup table for basis functions. | |
Calculates the inner product of all the basis functions and the histogram.
|
inline |
Constructor.
| functions | Vector of BasisFunction members. |
Initialize the evaluator.
Definition at line 361 of file Basis.h.
References BasisInit(), and CoeffInit().

| void SSAGES::BasisEvaluator::CoeffInit | ( | void | ) |
Initializes coefficient lookup vector.
For now, when the basis evaluator is called it will store all the values of the basis functions into a lookup table. [Subject to change]
Definition at line 100 of file Basis.cpp.
References coeff_, functions_, SSAGES::Map::map, and SSAGES::Map::value.
Referenced by BasisEvaluator().

|
inline |
|
inline |
Set the coefficient array in the event of a restart run.
| coeff | Vector of coefficients to set |
Definition at line 408 of file Basis.h.
References coeff_.
Referenced by SSAGES::BFS::SetBasis().

| void SSAGES::BasisEvaluator::UpdateBias | ( | Grid< double > * | bias, |
| Grid< std::vector< double >> * | grad | ||
| ) |
Outputs the basis projection at a specific coordinate.
Definition at line 154 of file Basis.cpp.
References SSAGES::Grid< T >::begin(), coeff_, SSAGES::Grid< T >::end(), functions_, SSAGES::GridBase< T >::GetLower(), SSAGES::GridBase< T >::GetNumPoints(), SSAGES::GridBase< T >::GetUpper(), and lookup_.

| double SSAGES::BasisEvaluator::UpdateCoeff | ( | const std::vector< double > & | array, |
| Grid< unsigned int > * | hist | ||
| ) |
Calculates the inner product of the basis set and the biased histogram This function then returns the coefficients from this calculation
| array | Basis set. |
| hist | Biased histrogram. |
Definition at line 194 of file Basis.cpp.
References SSAGES::Grid< T >::begin(), coeff_, SSAGES::Grid< T >::end(), functions_, SSAGES::GridBase< T >::GetNumPoints(), and lookup_.
