IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
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
15IMPISD_BEGIN_NAMESPACE
16/** A restraint for in-vivo ensemble FRET data
17 */
18
19class 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
30 const override;
31 virtual IMP::ModelObjectsTemp do_get_inputs() const override;
33};
34
35IMPISD_END_NAMESPACE
36
37#endif /* IMPISD_WEIGHT_RESTRAINT_H */
Abstract base class for all restraints.
A decorator for scale parameters particles.
Class for adding derivatives from restraints to the model.
Class to handle individual particles of a Model object.
Definition Particle.h:45
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
WeightRestraint(Particle *w, Float wmin, Float wmax, Float kappa)
Create the restraint.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
double Float
Basic floating-point value (could be float, double...).
Definition types.h:19
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.