22 #ifndef __PLUMED_vesselbase_FunctionVessel_h
23 #define __PLUMED_vesselbase_FunctionVessel_h
29 #include "core/Value.h"
66 bool applyForce( std::vector<double>& forces );
virtual unsigned getNumberOfTerms()
Return number of terms.
bool applyForce(std::vector< double > &forces)
This applies all the forces.
double getTolerance() const
Return the value of the tolerance.
void addToBufferElement(const unsigned &i, const double &val)
Add something to the ith element in the buffer.
double getFinalValue(const unsigned &j)
Get the nth value in the distribution.
bool diffweight
Are the derivatives differentiable.
std::string description()
The description for the log.
A class for holding the value of a function together with its derivatives.
double getBufferElement(const unsigned &i) const
Get the value in the ith element of the buffer.
void setOutputValue(const double &val)
Set the final value.
Objects that inherit from FunctionVessel can be used (in tandem with PLMD::ActionWithVessel) to calcu...
Value * final_value
This is the pointer to the value we are creating.
static void registerKeywords(Keywords &keys)
void mergeFinalDerivatives(const std::vector< double > &df)
This does a combination of the product and chain rules.
FunctionVessel(const VesselOptions &)
void set(double)
Set the value of the function.
void resize()
This does the resizing of the buffer.
This class holds the keywords and their documentation.
void addValueIgnoringTolerance(const unsigned &jval, const double &val)
Add some value to the accumulator and ignore the tolerance.
virtual std::string function_description()=0
The rest of the description of what we are calculating.
This class is used to pass the input to Vessels.
unsigned nderivatives
The number of derivatives.
bool addValueUsingTolerance(const unsigned &jval, const double &val)
Add some value to the accumulator if it is greater than tolerance.