IMP logo
Public Member Functions
IMP::DerivativeAccumulator Class Reference

Detailed Description

Class for adding derivatives from restraints to the model.

This class was created so that restraints can be weighted using a RestraintSet and that the derivatives would be scaled appropriately

List of all members.

Public Member Functions

 DerivativeAccumulator (double weight=1.0)
 the weight is one by default
 DerivativeAccumulator (const DerivativeAccumulator &copy, double weight=1.0)
 The weight is multiplied by the new weight.
double get_weight () const
double operator() (const double value) const
 Scale a value appropriately.
void show (std::ostream &out=std::cout) const

Constructor & Destructor Documentation

IMP::DerivativeAccumulator::DerivativeAccumulator ( double  weight = 1.0)

the weight is one by default

IMP::DerivativeAccumulator::DerivativeAccumulator ( const DerivativeAccumulator copy,
double  weight = 1.0 
)

The weight is multiplied by the new weight.


Member Function Documentation

double IMP::DerivativeAccumulator::operator() ( const double  value) const

Scale a value appropriately.

Parameters:
[in]valueValue to add to the float attribute derivative.

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

Generated on Tue May 22 2012 23:33:23 for IMP by doxygen 1.8.1