IMP logo
IMP Reference Guide  2.12.0
The Integrative Modeling Platform
SigmoidRestraintSphere.h
Go to the documentation of this file.
1 /**
2  * \file IMP/pmi/SigmoidRestraintSphere.h
3  * \brief Simple sigmoidal score calculated between sphere surfaces.
4  *
5  * Copyright 2007-2019 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPPMI_SIGMOID_RESTRAINT_SPHERE_H
10 #define IMPPMI_SIGMOID_RESTRAINT_SPHERE_H
11 #include "pmi_config.h"
12 #include <IMP/Restraint.h>
13 #include <IMP/particle_index.h>
14 
15 
16 IMPPMI_BEGIN_NAMESPACE
17 
18 //! Simple sigmoidal score calculated between sphere surfaces.
19 class IMPPMIEXPORT SigmoidRestraintSphere : public Restraint
20 {
23  double inflection_;
24  double slope_;
25  double amplitude_;
26  double line_slope_;
27 
28 
29 
30 public:
31 
32 
33  //! Create the restraint.
34  IMPPMI_DEPRECATED_OBJECT_DECL(2.11)
38  double inflection, double slope,
39  double amplitude, double line_slope_=0,
40  std::string name="SigmoidRestraintSphere%1%");
41 
42  void set_amplitude(double amplitude){amplitude_=amplitude;}
43  void increment_amplitude(double amplitude){amplitude_=amplitude_+amplitude;}
44  double get_amplitude(){return amplitude_;}
45 
46  virtual double
47  unprotected_evaluate(IMP::DerivativeAccumulator *accum)
48  const IMP_OVERRIDE;
51 
52 
53 };
54 
55 IMPPMI_END_NAMESPACE
56 
57 #endif /* IMPPMI_SIGMOID_RESTRAINT_SPHERE_H */
Various general useful functions for IMP.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A more IMP-like version of the std::vector.
Definition: Vector.h:39
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Simple sigmoidal score calculated between sphere surfaces.
Abstract base class for all restraints.
virtual ModelObjectsTemp do_get_inputs() const =0
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:54