8 #ifndef IMPISD_NUISANCE_H
9 #define IMPISD_NUISANCE_H
11 #include <IMP/isd/isd_config.h>
19 IMPISD_BEGIN_NAMESPACE
36 return p->has_attribute(get_nuisance_key());
39 bool has_lower()
const;
41 bool has_upper()
const;
43 Float get_nuisance()
const {
47 Float get_lower()
const;
49 Float get_upper()
const;
51 void set_nuisance(
Float d);
57 void set_lower(
Float d);
60 void set_upper(
Float d);
63 Float get_nuisance_derivative()
const {
64 return get_particle()->get_derivative(get_nuisance_key());
68 get_particle()->add_to_derivative(get_nuisance_key(), d, accum);
79 bool get_nuisance_is_optimized()
const {
80 return get_particle()->get_is_optimized(get_nuisance_key());
83 void set_nuisance_is_optimized(
bool val) {
84 get_particle()->set_is_optimized(get_nuisance_key(), val);