home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
2.20.2
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
include
IMP
isd
version 2.20.2
WeightRestraint.h
Go to the documentation of this file.
1
/**
2
* \file IMP/isd/WeightRestraint.h
3
* \brief Put description here
4
*
5
* Copyright 2007-2022 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef IMPISD_WEIGHT_RESTRAINT_H
10
#define IMPISD_WEIGHT_RESTRAINT_H
11
#include <
IMP/isd/Scale.h
>
12
#include <IMP/isd/isd_config.h>
13
#include <
IMP/Restraint.h
>
14
15
IMPISD_BEGIN_NAMESPACE
16
/** A restraint for in-vivo ensemble FRET data
17
*/
18
19
class
IMPISDEXPORT
WeightRestraint
:
public
Restraint
{
20
Particle
*w_;
21
Float
wmin_;
22
Float
wmax_;
23
Float
kappa_;
24
25
public
:
26
//! Create the restraint.
27
WeightRestraint
(
Particle
*w,
Float
wmin,
Float
wmax,
Float
kappa);
28
29
virtual
double
unprotected_evaluate
(
IMP::DerivativeAccumulator
*accum)
30
const override
;
31
virtual
IMP::ModelObjectsTemp
do_get_inputs
()
const override
;
32
IMP_OBJECT_METHODS
(
WeightRestraint
);
33
};
34
35
IMPISD_END_NAMESPACE
36
37
#endif
/* IMPISD_WEIGHT_RESTRAINT_H */
IMP::isd::WeightRestraint
Definition:
WeightRestraint.h:19
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
object_macros.h:25
IMP::Restraint::unprotected_evaluate
virtual double unprotected_evaluate(DerivativeAccumulator *da) const
Return the unweighted score for the restraint.
Scale.h
A decorator for scale parameters particles.
IMP::Vector
A more IMP-like version of the std::vector.
Definition:
Vector.h:42
IMP::Float
double Float
Basic floating-point value (could be float, double...)
Definition:
types.h:19
IMP::Particle
Class to handle individual particles of a Model object.
Definition:
Particle.h:43
Restraint.h
Abstract base class for all restraints.
IMP::ModelObject::do_get_inputs
virtual ModelObjectsTemp do_get_inputs() const =0
IMP::DerivativeAccumulator
Class for adding derivatives from restraints to the model.
Definition:
DerivativeAccumulator.h:24
IMP::Restraint
A restraint is a term in an IMP ScoringFunction.
Definition:
Restraint.h:56