12 #ifndef IMPISD_CYSTEINE_CROSS_LINK_RESTRAINT_H
13 #define IMPISD_CYSTEINE_CROSS_LINK_RESTRAINT_H
14 #include <IMP/isd/isd_config.h>
18 #include <cereal/access.hpp>
19 #include <cereal/types/vector.hpp>
21 IMPISD_BEGIN_NAMESPACE
49 std::vector<ParticleIndexes> pslist1_;
50 std::vector<ParticleIndexes> pslist2_;
61 friend class cereal::access;
63 template<
class Archive>
void serialize(Archive &ar) {
64 ar(cereal::base_class<Restraint>(
this), ps1_, ps2_, pslist1_, pslist2_,
65 beta_, sigma_, epsilon_, weight_, data_, ccldata_, constr_type_,
88 double get_probability()
const;
90 double get_standard_error()
const;
92 Floats get_frequencies()
const;
94 double get_model_frequency()
const;
96 Floats get_distances()
const;
98 double get_truncated_normalization(
double mean,
double sigma)
const;
100 double get_normal_pdf(
double mean,
double sigma,
double x)
const;
107 unsigned get_number_of_contributions()
const;
Normal distribution of Function.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Take Decorator, Particle or ParticleIndex.
virtual double unprotected_evaluate(DerivativeAccumulator *da) const
Return the unweighted score for the restraint.
Normal distribution of Function.
Class for storing model, its restraints, constraints, and particles.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
A smart pointer to a ref-counted Object that is a class member.
Abstract base class for all restraints.
virtual ModelObjectsTemp do_get_inputs() const =0
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.
A restraint for cysteine cross-linking data.