IMP logo
IMP Reference Guide  develop.d97d4ead1f,2024/11/21
The Integrative Modeling Platform
IMP::DerivativeAccumulator Class Reference

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

#include <IMP/DerivativeAccumulator.h>

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

Definition at line 24 of file DerivativeAccumulator.h.

Public Member Functions

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

Constructor & Destructor Documentation

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

the weight is one by default

Definition at line 28 of file DerivativeAccumulator.h.

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

The weight is multiplied by the new weight.

Definition at line 31 of file DerivativeAccumulator.h.

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.

Definition at line 37 of file DerivativeAccumulator.h.

+ Here is the call graph for this function:


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