IMP  2.1.1
The Integrative Modeling Platform
IMP::kernel::DerivativeAccumulator Class Reference

Class for adding derivatives from restraints to the model. More...

#include <IMP/kernel/DerivativeAccumulator.h>

Public Member Functions

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

Detailed Description

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

Definition at line 25 of file kernel/DerivativeAccumulator.h.

Member Function Documentation

double IMP::kernel::DerivativeAccumulator::operator() ( const double  value) const
Parameters
[in]valueValue to add to the float attribute derivative.

Definition at line 38 of file kernel/DerivativeAccumulator.h.

+ Here is the call graph for this function:


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