10 #ifndef IMPISD_MARGINAL_HBOND_RESTRAINT_H
11 #define IMPISD_MARGINAL_HBOND_RESTRAINT_H
14 #include <IMP/isd/isd_config.h>
18 IMPISD_BEGIN_NAMESPACE
34 std::vector<double> volumes_;
36 void set_logsquares(
double logsquares) {logsquares_=logsquares;}
53 double get_logsquares()
const {
return logsquares_;}
55 unsigned get_number_of_contributions()
const {
return volumes_.size();}
58 double get_probability()
const
60 return exp(-unprotected_evaluate(
nullptr));